Skip to content

Conversation

@Cloudef
Copy link

@Cloudef Cloudef commented Apr 4, 2016

Support proxy configuration for proxies that support HTTP tunnel feature.
Only basic authentication is implemented.

@Cloudef Cloudef force-pushed the feature/basic-http-proxy branch 3 times, most recently from cdeec62 to 8c7d991 Compare April 4, 2016 12:15
@acmacalister
Copy link
Owner

Hi @Cloudef, thanks for the PR. Code looks really good! I probably need to run these through the autobahn test again to make sure everything is kosher. Would be cool to test it behind a proxy as well. As soon as I get a chance to do that, I will get back to you.

@Cloudef
Copy link
Author

Cloudef commented May 1, 2016

Thanks, I used squidman for testing the proxy.

@Cloudef Cloudef force-pushed the feature/basic-http-proxy branch 2 times, most recently from c0a47c1 to bc94812 Compare November 28, 2016 11:58
@Cloudef
Copy link
Author

Cloudef commented Nov 28, 2016

I updated the PR to fix some issues with old implementation. Mainly SSL handover failed if proxy responses were not fully read from stream, and authentication needing dialog due to it being impossible to get password for proxy set in system settings from system keychain on iOS.

Support proxy configuration for proxies that support HTTP tunnel feature.
Only basic authentication is implemented.

SSL handover after CONNECT TCP tunneling, by making sure all
incoming data from proxy is read before moving forward.

Maximum proxy responses are limited to 10MiB. Go over this and the code will ignore anything proxy has to say.
@Cloudef Cloudef force-pushed the feature/basic-http-proxy branch from bf83345 to a6643cd Compare November 29, 2016 09:00
@genemyers
Copy link

I've used these changes with Charles proxy and everything just worked. Nice, thank you.

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.

4 participants