Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bug in HTTP basic authentication #147

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

amirasaran
Copy link

Hi there,

I have a problem to establish a connection to proxy.py with HTTP proxy and authentication after checking issues I found basic authentication must be camelcase.

@amirasaran
Copy link
Author

Sample request for test

$ telnet xxx.xxx.xxx.xxx 8899
Trying xxx.xxx.xxx.xxx...
Connected to xxx.xxx.xxx.xxx.
Escape character is '^]'.
CONNECT alt4.gmail-smtp-in.l.google.com:25 HTTP/1.1
Host: alt4.gmail-smtp-in.l.google.com
Proxy-Authorization: basic dXNlcjpwYXNz

HTTP/1.1 407 Proxy Authentication Required
Proxy-agent: proxy.py v2.2.0
Proxy-Authenticate: Basic
Connection: close
Content-Length: 29
$ telnet xxx.xxx.xxx.xxx 8899
Trying xxx.xxx.xxx.xxx...
Connected to xxx.xxx.xxx.xxx.
Escape character is '^]'.
CONNECT alt4.gmail-smtp-in.l.google.com:25 HTTP/1.1
Host: alt4.gmail-smtp-in.l.google.com
Proxy-Authorization: Basic dXNlcjpwYXNz

HTTP/1.1 200 Connection established

220 mx.google.com ESMTP p67si5683406oig.195 - gsmtp

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.

1 participant