force-rest-api icon indicating copy to clipboard operation
force-rest-api copied to clipboard

Add proxy settings in ApiConfig

Open Fengy opened this issue 9 years ago • 3 comments

I use this library in an application with a proxy and it is not working. Even using the following property in my Java code.

         System.setProperty ("http.proxyHost", "...");          System.setProperty ("http.proxyPort", "...");

Is it possible to add the possibility to set up a proxy in the class "ApiConfig" so that it is used in methods "openConnection" Class "HttpURLConnection"?

The code is present in this fork: https://github.com/alexsapps/force-rest-api/tree/improvementsMarch2015

Thank you

Fengy avatar Oct 26 '15 17:10 Fengy

Yes. Proxy support makes sense.

Do you mind sending a nice clean, rebased pull request? That would be very helpful, thanks!

jesperfj avatar Oct 26 '15 18:10 jesperfj

Also, think about how you would test it.

jesperfj avatar Oct 26 '15 18:10 jesperfj

Hi, any plans to add proxy support? I know this is over 5 years old now, but I would really appreciate this to be added. :)

H-Herou avatar May 11 '21 13:05 H-Herou