Roland I could kiss ya!
Well I'll reserve judgment till me meet. But your suggestion is correct!
I've got this..
PostMethod formPost = new PostMethod("http://" +
serverAddress+":"+serverPort + "/theForm/j_security_check");
formPost.addRequestHeader("Referer", "http://" +
serverAddress+":"+serverPort + "/client/huginPathReceiverServlet");
formPost.addParameter("j_username", userID);
formPost.addParameter("j_password", userPassword);
client.executeMethod(formPost.getHostConfiguration(), formPost, state);
I'm trying to login to a JBoss secured page.
Can I replace it with this?
client.executeMethod(client.getHostConfiguration(), formPost, state);
-----Original Message-----
From: Roland Weber [mailto:[EMAIL PROTECTED]
Sent: 10 October 2006 17:08
To: HttpClient User Discussion
Subject: Re: Connection timed out - proxy already set... ?
Hi Jeff,
you should take care of this problem first:
> 2006/10/10 15:41:05:312 BST [WARN] SimpleHttpConnectionManager -
> -SimpleHttpConnectionManager being used incorrectly. Be sure that
> HttpMethod.releaseConnection
>
> () is always called and that only one thread and/or method is using
this
> connection manager at a time.
The first request is sent via a port 3128 all right. On the second
request, HttpClient tries to connect to port 80 directly. Are you
by any chance using an HttpClient.execute(...) method with an explicit
host configuration argument?
cheers,
Roland
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]