HTTPS connection
Hi,
I am trying to make an HTTPS connection to one URL, and actually being connected to an associated homepage. I would suspect some kind of URL redirection, except that when I try to connect manually, I get in. Does anyone have an explanation for this? The relevant code is:
URL url = new URL("https://..."); // URL is complete and what I want
InetAddress addr = InetAddress.getLocalHost();
ClientHttpRequest req = new ClientHttpRequest(url);
req.setParameter("test", credentialFile);
InputStream is = req.post();
BufferedReader rd = new BufferedReader(new
InputStreamReader(is));
String line;
while ((line = rd.readLine()) != null) {
System.out.println(line);
}
rd.close();
and the constructor for req is:
public ClientHttpRequest(URL url) throws IOException {
this(url.openConnection());
}
Thanks in advance for any help you might offer.

