Hi, I am using Java to access a secure web page (
https://...) that requires a userid and password. I am using the following Java code:
String urlAddr = "https://webaddress?userid=USERID&password=PASSWORD";
URL url = new URL(urlAddr);
URLConnection con = url.openConnection();
InputStream in = con.getInputStream();
BufferedReader result = new BufferedReader( new InputStreamReader( in ) );
String Info = result.readLine();
The above code gives the following timeout exception:
Exception occurred: Connection timed out: connect Stack Trace:[Ljava.lang.StackTraceElement;@d6c16c
I am behind a firewall that requires authentication (userid and password) before I can gain access to the Internet. Therefore, there are two levels of authentication. I am only addressing one above. Can someone please advise to what options are available?
Thanks.