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

Sending HTTP Request via Proxy Server #846

Open
confusionhill opened this issue Dec 20, 2022 · 1 comment
Open

Sending HTTP Request via Proxy Server #846

confusionhill opened this issue Dec 20, 2022 · 1 comment

Comments

@confusionhill
Copy link

Hello, i wanted to know if the library support sending an HTTP Request via a proxy server. Thanks

@adiykehler
Copy link

From my experience, Fuel respects the http.proxyHost, https.proxyHost, http.proxyPort and https.proxyPort settings of the JVM. So you can run your program for example as

java -Dhttp.proxyHost=localhost -Dhttp.proxyPort=8080 -Dhttps.proxyHost=localhost -Dhttps.proxyPort=8080 -jar jarfile

and all Fuel requests should be sent through the proxy.

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