3 ms·
As a tangent, I've found httpie to be a decent curl replacement for many uses. https://github.com/jkbrzt/httpie https://github.com/jkbrzt/httpie
by threatofrain 11y ago
As a tangent, I've found httpie to be a decent curl replacement for many uses.
https://github.com/jkbrzt/httpie https://github.com/jkbrzt/httpie
- therealmarv 11y agointeresting alternative if you have a decent python version! However I need to say that Python+request lib has historically bugs (which are resolved in newer python 2.7.9+ versions). For example I had problems with SSL SNI certificates with older python versions and CURL and WGET don't have this problems on older Linux distributions. Last year I also had a lot of headache because of this in Ansible (Python + request lib based): https://github.com/ansible/ansible-modules-core/issues/1716#issuecomment-120995697 https://github.com/ansible/ansible-modules-core/issues/1716#... So I bet more on curl than python+request lib
- DonHopkins 11y agoGood point. Same problem with old versions of Java. I had problems with Voxeo's Java IVR web service calling back to my https server using SNI, since they were apparently using some old Java http client libraries [1], or not using the new ones correctly. I had the darnedest time figuring out what was going wrong, and when I finally did, they weren't responsive to the suggestion they upgrade their library and fix their code to support SNI, so I had to punch an insecure hole for them to call back through. [1] http://stackoverflow.com/questions/12361090/server-name-indication-sni-on-java http://stackoverflow.com/questions/12361090/server-name-indi...
- reaperhulk 11y agopip install requests[security] and you don't have to care whether the stdlib properly supports SNI.
- DonHopkins 11y agoThey should have named it Shemp, although in an alternate universe, Hackett might have been a good replacement too. [1] I for one always pronounce WWW "woo woo woo"! [2] >Moe asked older brother Shemp to take Curly's place, but Shemp was hesitant to rejoin the Stooges as he was enjoying a successful solo career. He realized, however, that not rejoining the Stooges would mean the end of Moe's and Larry's film careers. Shemp wanted assurance that rejoining them would be only temporary, and that he could leave the Stooges once Curly recovered. However, Curly's health continued to deteriorate, and it became clear that he couldn't return. The Stooges turned to comedian Buddy Hackett as a replacement, but Hackett declined, and Shemp remained a Stooge. Curly remained ill until his death of a cerebral hemorrhage from additional strokes on January 18, 1952. [1] https://en.wikipedia.org/wiki/The_Three_Stooges#Shemp.27s_return_.281947.E2.80.9355.29 https://en.wikipedia.org/wiki/The_Three_Stooges#Shemp.27s_re... [2] https://www.youtube.com/watch?v=tyGWEcqY96E https://www.youtube.com/watch?v=tyGWEcqY96E
- 4e1a 11y agoExcellent!
- setheron 11y agoI wish there was a curl to httpie converter or it did that for you natively