kittinunf / fuel

The easiest HTTP networking library for Kotlin/Android

Home Page:https://fuel.gitbook.io/documentation/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Sending HTTP Request via Proxy Server

confusionhill opened this issue · comments

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

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.