Let’s say I want to connect to https://www.code.com/secure/test.xml and pull all the data. Before allowing me to pull said data it prompts me for my credentials.
How can I handle this using java? I’ve googled around and landed at the Appache httpClient but can’t find ANYTHING on https with it.
A quick search showed:
http://docs.oracle.com/javase/7/docs/technotes/guides/net/http-auth.html
So you probably have to set the default Authenticator:
http://docs.oracle.com/javase/7/docs/api/java/net/Authenticator.html#setDefault%28java.net.Authenticator%29