Closed CMCDragonkai closed 9 years ago
I just tried this url and it works in curl but not in httpie:
> curl -L --header "Accept: application/json" https://hydra.nixos.org/job/nixos/release-14.12/nixos.iso_minimal.x86_64-linux/latest-finished {"system":"x86_64-linux","nixname":"nixos-iso-14.12.708.8115e8c","id":22439241,"buildstatus":0,"priority":100,"starttime":1432389482,"timestamp":1432389482,"releasename":null,"buildinputs_builds":{},"jobset":"release-14.12","busy":0,"job":"nixos.iso_minimal.x86_64-linux","stoptime":1432389482,"finished":1,"buildproducts":{"1":{"path":"/nix/store/2rajq05x9s4qf5mn2llln6bc352hx3fa-iso9660-image/iso/nixos-minimal-14.12.708.8115e8c-x86_64-linux.iso","sha1hash":"d2a33f43c9583bab21697abcd2589088ffef968e","filesize":331671552,"description":null,"defaultpath":null,"name":"nixos-minimal-14.12.708.8115e8c-x86_64-linux.iso","sha256hash":"3853ca6867e8c1cc46745547f23fd359efb9570ea7e7403d1432612d7488d5a5","subtype":"iso","type":"file"}},"buildoutputs":{"out":{"path":"/nix/store/z6jzwchia3ajakhr6dbibs3k36z1drbv-nixos-iso-14.12.708.8115e8c"}},"project":"nixos"} > http https://hydra.nixos.org/job/nixos/release-14.12/nixos.iso_minimal.x86_64-linux/latest-finished --json --follow http: error: SSLError: hostname 'hydra.nixos.org' doesn't match either of 'svn.strategoxt.org', 'strategoxt.org'
Why is there an SSL error on httpie but not in Curl? I'm running the latest httpie and curl is at curl 7.41.0.
This is a known, SNI-related issue older Python versions have. Have a look here for a fix:
https://github.com/jakubroztocil/httpie#sni-server-name-indication
I just tried this url and it works in curl but not in httpie:
Why is there an SSL error on httpie but not in Curl? I'm running the latest httpie and curl is at curl 7.41.0.