How does Requests choose a proxy type?
Quoting the documentation:
proxies = {
'http': 'http://10.10.1.10:3128',
'https': 'http://10.10.1.10:1080',
}
requests.get('http://example.org', proxies=proxies)
How does Requests know which proxy type to use? Does it decide based off the url schema? In which case, why supply two?
What difference does it make, and why supply either HTTP or HTTPS for SOCKS proxies?
proxies = {
'http': 'socks5://user:pass@host:port',
'https': 'socks5://user:pass@host:port'
}
How would I go about implementing a mixed list of HTTP and HTTPS proxies? Can I use HTTPS proxies interchangeably with HTTP ones if accessing using http:// in my request? What about redirects to HTTPS?
Posted Nov 8, 2020, 11:08 AM UTC
20