plain Java API login via proxy
I am working in an environment where all http/s has to go through a proxy server.
Does getTeamRepository work through proxies? If so how how do I specify proxy host and protected information.
Also, the proxy requires certificate authentication that can be bypassed.
How does it handle keystores?
Many thanks
One answer
Lewis,
the PlainJava API calls should be agnostic to that. However, you might have to tell the JVM executing your code to use a proxy as per e.g. https://stackoverflow.com/questions/120797/how-do-i-set-the-proxy-to-be-used-by-the-jvm
In the downloaded PlainJava API navigate to the /snippets directory. You find code for logging in in Snippet1.java. Running that from a client with / without the proxy jvm parameters will give you a quick indication if it works.
If this is helpful please mark the answer accepted.
- Arne