Hi all.
I've an application that it connects with a servlet through HttpsURLConnection
class. My problem is when I intend to send data on this connection.
Application:
HttpsURLConnection servConn = new HttpsURLConnection(new URL(<servlet>));
servConn.setSSLContext(context); -- this context is correct.
servConn.setRequestMethod("POST");
servConn.setDoInput(true);
servConn.setDoOutput(true);
servConn.setRequestProperty("Content-type","application/octet-stream");
ObjectOutputStream oos = new ObjectOutputStream(servConn.getOutputStream());
oos.writeObject(<object to send>);
oos.close();
...
When I execute this code, I obtain the following error:
HttpException: Unable to contact target server <server>:8443 after 3 tries.
If I don't send data from my application, the servlet is loaded correctly. But
I can't to send nothing to my servlet.
How can I solve this problem??
Note: HttpsURLConnection is a IAIK module that simulate a secure connection as
a web connection.
Regards.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]