In my case, this confuses java http client. It then asks for credentials for the server instead of new credentials for the proxy. Hence, wrong proxy credentials are not invalidated and instead are reused, which in turn leads to all requests failing with 401 status.
https://stackoverflow.com/questions/5508822/http-response-to-invalid-proxy-authentication
If I'm not mistaken, this is the place that should be fixed:
|
indicate_http_error (connptr, 401, "Unauthorized", |
In my case, this confuses java http client. It then asks for credentials for the server instead of new credentials for the proxy. Hence, wrong proxy credentials are not invalidated and instead are reused, which in turn leads to all requests failing with 401 status.
https://stackoverflow.com/questions/5508822/http-response-to-invalid-proxy-authentication
If I'm not mistaken, this is the place that should be fixed:
tinyproxy/src/reqs.c
Line 1695 in c4df45b