3 ms·
interesting 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 py
by therealmarv 11y ago
interesting 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.