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

Issue with HTTP 301/302 with MITM #88

Closed
codersbrew opened this issue Sep 18, 2013 · 5 comments
Closed

Issue with HTTP 301/302 with MITM #88

codersbrew opened this issue Sep 18, 2013 · 5 comments
Milestone

Comments

@codersbrew
Copy link

Firefox has detected that the server is redirecting the request for this address in a way that will never complete.

When going to https://www.google.com
or e.g. https://bugzilla.mozilla.org/show_bug.cgi?id=561536

I get a loop of HTTP 301/302s that seem to not be completed by the MITM.

@oxtoacart
Copy link
Collaborator

It looks like the request is being forwarded with the wrong protocol (http) and getting forced over to https. Will look at this soon.

oxtoacart added a commit that referenced this issue Sep 19, 2013
…he request following the original CONNECT was missing the host:port
@oxtoacart
Copy link
Collaborator

The issue was that we were getting a CONNECT with a host:port for the server, but the subsequent GET was omitting this host:port. The logic that caches ProxyToServerConnections interpreted this as meaning that we needed to open a new connection to the server, when in fact we should have been reusing the existing one.

I tested this against a real website using Chrome and Firefox and it seems to work now.

I still need to update the unit test for this.

The fix is available on the mitm branch.

oxtoacart added a commit that referenced this issue Sep 19, 2013
…he request following the original CONNECT was missing the host:port
oxtoacart added a commit that referenced this issue Sep 19, 2013
…he request following the original CONNECT was missing the host:port
@oxtoacart
Copy link
Collaborator

@codersbrew Is this working for you now?

@codersbrew
Copy link
Author

@oxtoacart Yes this works now

@oxtoacart
Copy link
Collaborator

Excellent!

MediumOne pushed a commit to MediumOne/LittleProxy that referenced this issue Jun 7, 2022
…tty-codec-4.1.68.Final

Bump netty-codec from 4.1.63.Final to 4.1.68.Final
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

No branches or pull requests

2 participants