carsonyl / pypac

Find and use proxy auto-config (PAC) files with Python and Requests.
https://pypac.readthedocs.io
Apache License 2.0
71 stars 18 forks source link

Multiple Proxies in Requests with Various Redirect Chains #37

Open brad-anton opened 5 years ago

brad-anton commented 5 years ago

If there is a complicated redirect chain (e.g. HTTP -> HTTPS -> DIRECT ) PyPAC will not appropriately set the proxy server for each URL.

The following PoC provides an example fix: https://gist.github.com/brad-anton/4e27b15df76e6eb2390d2b4c4e7e930d