[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[iaik-ssl] Http(s) post does not work when using a HttpManager



Hi,

I'm using a org.w3c.www.protocol.http.HttpManager to setup http(s) connections, like this:

HttpManager manager = HttpManager.getManager() ;
manager.setTimeout(10000);
Request request = manager.createRequest() ;
request.setMethod("POST") ;
URL url = new URL("http://localhost:8080/jsp/test/MerchantSim.jsp");
request.setURL(url);
request.setOutputStream(new ByteArrayInputStream("dump=true".getBytes()));
Reply reply = manager.runRequest(request);
int rc = reply.getStatus();

The reason that I don't use a regular HttpURLConnection is that this HttpManager offers the possibility to set a timeout.

But this piece of code does not send the request variables ("dump=true")!  The request is sent, but the request variables are not received. According to the w3c documentation, this should work.
I'm using the iaik_ssl.jar and w3c_http.jar from iSaSiLk 3.0 (3.01 gives the same result) and the iaik_jce_full.jar from iaik-jce 2.51 (2.6 gives the same result)...

Can anybody tell me how to do a successful http(s) post including request variables, using the HttpManager??

Regards,
Tom

--
Tom van den Berge                                tom.vandenberge@bibit.com
Development                                          V +31 (0)30 65 65 665
Bibit Billing Services BV                            F +31 (0)30 65 64 464
Kosterijland 70-78                                           www.bibit.com
3981 AJ Bunnik
The Netherlands