When downloading a file over a http: proxy from an http: URL that redirects to https: URL, download reuses the httpOverHttp tunneling agent created by caw, which then causes new requests always sent with http protocol. That would generate a redirect loop until got finally throws a MaxRedirectsError.
When downloading a file over a
http:
proxy from anhttp:
URL that redirects tohttps:
URL,download
reuses thehttpOverHttp
tunneling agent created bycaw
, which then causes new requests always sent with http protocol. That would generate a redirect loop untilgot
finally throws a MaxRedirectsError.Sample:
Result:
It should be considered that the proxy agent should be re-created in case of protocol-changing redirects.