News for hackers. Stuff that matters.
Re:A curl cheat sheet by wldcordeiro on Thursday September 17, 2015 @09:01PM (#10236985)
While great, I stopped using it for httpie instead, it has a much simpler interface.
Re:A curl cheat sheet by sohkamyung on Thursday September 17, 2015 @11:10PM (#10237311)
Maybe I'm wrong, but httpie appears to be targetting http transactions only, while curl supports multiple protocols (ftp, etc.).

curl's syntax is also baked into various Web Browser network debuggers. Both Chrome and Firefox's network transactions display have a "output to curl" option to allow you to recreate the network transaction exactly.

Edit: on Firefox, the option is "Copy as curl"

Re:A curl cheat sheet by wldcordeiro on Friday September 18, 2015 @01:04AM (#10237555)
That is true, curl has some additional protocol features and then of course it being a standard part of most *nix OSes makes it easy to understand why Chrome and Firefox both have the copy as curl option. I still use curl regularly but for any pure http(s) stuff I use httpie because of its improved user experience.
Re:A curl cheat sheet by sudo_bang_bang on Thursday September 17, 2015 @09:11PM (#10237014)
Likewise, I switched over. I just wish HTTPie could have an "output to curl" feature.
Re:A curl cheat sheet by dfc on Thursday September 17, 2015 @10:37PM (#10237241)
I apologize if this is obvious but I do not understand why you wish httpie had an output to curl feature? Am I missing some sarcastic twist?
Re:A curl cheat sheet by lkey on Friday September 18, 2015 @12:24AM (#10237460)
I'd guess it has something to do with curl being available everywhere and httpie requiring installation. Oftentimes you can't enforce that your preferred alternative is deployed where you'd like to run scripts, so http->curl.
Re:A curl cheat sheet by trashcan on Friday September 18, 2015 @12:14AM (#10237446)
I think they meant that it would useful to have it provide a curl equivalent command, much like chrome has in the network section.