Skip to content

Conversation

scrapoxy
Copy link

@scrapoxy scrapoxy commented Aug 2, 2024

Hello,

Splash does not correctly handle proxy authentication as specified in RFC2817.

When using the CONNECT method with a proxy, the Proxy-Authorization header is not accessible from the request because it is TLS encrypted. Adding this header to the request object doesn't work (see network_manager.py, line 291).

For the CONNECT method, the Proxy-Authorization header should be set on the proxy object.

This PR resolves the issue.

Thanks.

Fabien.

@scrapoxy scrapoxy changed the title fix(proxy): use proxy-auth header on proxy, not on request for connect Use Proxy-Authorization header on proxy object, not on request object for CONNECT method (https://...) Aug 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants