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.
[ Parent
| on HN ]
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.
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?
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.