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

Implement HTTP proxy support #44

Closed
clue opened this issue Sep 6, 2015 · 6 comments
Closed

Implement HTTP proxy support #44

clue opened this issue Sep 6, 2015 · 6 comments

Comments

@clue
Copy link
Member

clue commented Sep 6, 2015

No description provided.

@clue
Copy link
Member Author

clue commented Mar 10, 2017

I've started looking into this a while back and it actually worked out quite good, but I was never quite happy with its API. As such, I'm looking into adding PSR-7 support via #41 first 👍

In the meantime, these proxy servers are already supported:

@enrico69
Copy link

Hi
So is there any way to connect through a proxy?

@clue
Copy link
Member Author

clue commented Jun 28, 2017

@enrico69 Absolutely! Have you tried any of the above links? Simply pass a custom connector instance to the Client and everything should work 👍

Note that plain HTTP proxies are currently not supported yet, hence why this ticket is still open.

@enrico69
Copy link

@clue
Hi, and thanks for your answer.

However is this solution still up to date?
When I do a composer require, it fails because the current version of ReactPHP is not the good one.
Not compatible I guess, beacause if I try a manual installation, the class ProxyConnector uses classes wich seems to no longer exit, as React\Socket\ConnectorInterface for example. So unable to try your solution :(

@enrico69
Copy link

enrico69 commented Jun 29, 2017

OK I finally managed to do it.
I completely removed ReactPHP with a composer remove react/react
Then I installed the proper libraries:

composer require clue/http-proxy-react:^1.1
composer require react/http-client

Then a little bit of work to adapt my code to these older version (missing factories for example).

Thanks for your work

@clue
Copy link
Member Author

clue commented Feb 2, 2019

Having used https://github.com/clue/reactphp-http-proxy and https://github.com/clue/reactphp-socks and https://github.com/clue/reactphp-ssh-proxy for a while, I don't think there's anything that needs to be done in this ticket anymore.

I'll assume this is resolved and will close this for now, please feel free to report back otherwise 👍

@clue clue closed this as completed Feb 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants