http
http copied to clipboard
Better proxy support?
Hello,
Thanks for this awesome gem. I love python requests egg, and I am glad I am not alone in the Ruby community!
I wonder if there is any plan to support the http://user:password@ip:port
format, proxy timeouts, and SSL proxies?
I am willing to dig into it if no one is already working on this.
Thanks!
We have generally decided to eschew supporting passwords in URIs, following suit from browsers and browser guidelines which deprecated this pattern:
https://developer.mozilla.org/en-US/docs/Web/HTTP/Authentication
See also: #477
I think there's a way to do SSL proxies already but offhand I don't see it. Perhaps @zanker knows?
We support CONNECT
proxying, which only supports HTTP (to the proxy). I don't believe we support SOCKs proxies? It's been a while since I've messed with a SOCK proxy though.
Cool, I didn't knew it was deprecated, good to know.
Unrelated question, if we use multiple proxies to get the same page at the same time via threads, is there a way to cancel a processing requests in case one proxy is faster than the other?