kittinunf / fuel

The easiest HTTP networking library for Kotlin/Android
https://fuel.gitbook.io/documentation/
MIT License
4.56k stars 431 forks source link

Sending HTTP Request via Proxy Server #846

Open confusionhill opened 1 year ago

confusionhill commented 1 year ago

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

adiykehler commented 1 year ago

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.