Ah, finally it's all working. I can now use either the GetMethod or the
PostMethod to communicate with my servlet. When I used GET I coded the
jsessionid thing wrong - should have written ";jsessionid=..." but instead
I had it as "?jsessionid=...". If I use the PostMethod, I needed to send a
cookie to the server telling it the session I wanted.
But of course, whether I will have the dreaded "Connection timed out:
connect" problem which opened up this can of worm for me in the first place
remains to be seen. I hope the following code had extended the connection
time out period and I will never get a timeout again:
HttpClient httpClnt = new HttpClient();
httpClnt.getParams().setParameter( "http.socket.timeout", new Integer(
60000 ) );
httpClnt.getHttpConnectionManager().getParams().setConnectionTimeout( 30000
);
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]