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

Using another proxy server in this chain #154

Open
ramizdemiurge opened this issue Dec 27, 2018 · 3 comments
Open

Using another proxy server in this chain #154

ramizdemiurge opened this issue Dec 27, 2018 · 3 comments
Labels

Comments

@ramizdemiurge
Copy link

Can I use a proxy server for this? And is it possible to dynamically add a proxy to the chain? I will try to explain what I want to say: There is a Glype program written in php. It allows you to surf the Internet with another ip. I have a proxy list with which I want to use this library.

I use Spring boot

@dsmiley
Copy link
Collaborator

dsmiley commented Dec 27, 2018

You can configure this servlet to use an HTTP Proxy Server, if that's what you mean. This can be done with standard Java system properties, or you could subclass and configure it explicitly.

@ramizdemiurge
Copy link
Author

you could subclass and configure it explicitly

Well, that is what I need because there are a lot of proxies to choose from in real time. What class I should extend? Can you help me with this?

Thank you!

@dsmiley
Copy link
Collaborator

dsmiley commented Dec 27, 2018

I can't really help other than point you in a useful direction. You could investigate the Apache HttpClient API to see what options it offers. The servlet uses that to do the request, and that API is very rich/extensive. That's where most of the work will probably be. Once you've figured out how to make HttpClient do dynamic proxy'ing, then all you'd have to do with the servlet is override to configure your customized HttpClient in createHttpClient().

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants