http icon indicating copy to clipboard operation
http copied to clipboard

Better proxy support?

Open hartator opened this issue 5 years ago • 3 comments

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!

hartator avatar Aug 06 '18 22:08 hartator

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?

tarcieri avatar Aug 06 '18 23:08 tarcieri

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.

zanker avatar Aug 06 '18 23:08 zanker

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?

hartator avatar Aug 07 '18 17:08 hartator