![]() ![]() I don’t know which one of my coworkers started using jq first, but it spread like wildfire! We work with JSON data almost constantly, and we also like to do things as much in line with the Unix philosophy as possible. This is probably for the best, as it keeps my cURL skills from getting rusty. cURL is the de facto standard way to make HTTP requests, so I’m effectively forced to use cURL when other people are involved, or else I’d have to explain what HTTPie is and another layer of complexity would be introduced to the support issue. when I’m debugging another person’s cURL command that isn’t working, or when I’m seeking support for an HTTP request that I can’t get to work, and I need to provide a cURL example of the request that I’m trying. The 10% of cases where I don’t use HTTPie are support-related, e.g. There was a slight learning curve in that advanced usage requires a basic understanding of what defaults HTTPie uses, but in my experience with it so far, the defaults make sense in the majority of cases. I’ve been using HTTPie for a while, and I use it 90% of the time instead of cURL. You can also redirect input from files, which is a handy feature: http PUT /put < hello_world.json The “hello world” example in the HTTPie documentation does a nice job of illustrating the relative ease of using it instead of cURL: # cURLĬurl -i -X PUT /put -H Content-Type:application/json -d '' # HTTPie HTTPie also features a number of sane defaults for things like Accept and Content-Type headers, making it fast and easy to make HTTP requests without having to do as much double-checking that your headers are correct. In addition to pretty-printing and syntax-highlighting JSON responses, it provides a nicer syntax for setting request parameters that I find easier to remember than the equivalent cURL syntax. ![]() HTTPie is a user-friendly cURL replacement. Links can be made easily by highlighting text and pressing Enter, then opened by pressing Enter again. Wiki pages can be written in Markdown or MediaWiki syntax, and the interface and keybindings are quite intuitive. Vimwiki is a Vim plugin that lets you maintain a personal wiki in the form of a bunch of interlinked text files. Over time, you’ll gradually build your own interconnected web of information that is useful to you. (I use mine to keep track of fragments of melodies and lyrics that pop into my head, stupid band name ideas, programming project ideas, talk proposals, and all kinds of other things.) You can organize your ideas into separate files and link them to each other. It’s like the digital equivalent of a handy scratchpad that you can use to jot down notes about anything that comes to your mind. I think keeping a personal wiki is a great way to organize your life. I continue to find and use awesome things (the internet has many of them), so here are a few more things I’ve been enjoying lately. Changed the default Windows theme from fruity to auto.I tried this once before and it was pretty fun.Fixed an unexpected crash when -raw is used with -chunked.Fixed highlighting when Content-Type specifies charset.Fixed auto addition of XML declaration to every formatted XML response.Added warnings about the -ignore-stdin, when there is no incoming data from stdin.Added support for storing prompted passwords in the local sessions.Added support for better error handling on DNS failures.Added new pie-dark/ pie-light (and pie) styles that match with HTTPie for Web and Desktop.Added support for displaying the total elapsed time through -meta/ -vv or -print=m.Added support for automatically enabling -stream when Content-Type is text/event-stream.Added support for basic JSON types on -form/ -multipart when using JSON only operators ( :=/ ( #1212).Added support for receiving multiple HTTP headers lines with the same name.Added support for sending multiple HTTP header lines with the same name.Added support for quick conversions of pasted URLs into HTTPie calls by adding a space after the protocol name ( $ https ://pie.dev → ).Added support for Bearer authentication via -auth-type=bearer ( #1215).Added httpie plugins interface for plugin management.✨ What’s new in HTTPie for Terminal 3.0 → Changed httpie plugins to the new httpie cli namespace as httpie cli plugins ( httpie plugins continues to work as a hidden alias).Fixed blocking of warning thread on some use cases.Fixed redundant creation of Content-Length header on OPTIONS requests.Added support for sending Secure cookies to the localhost (and.Added support for session persistence of repeated headers with the same name.Added http -manual for man pages & regular manual with pager.Added support for man pages (and auto generation of them from the parser declaration). ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |