hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Roland Weber <ROLWE...@de.ibm.com>
Subject Re: Can't post to web sphere server
Date Thu, 01 Dec 2005 10:55:29 GMT
Hi Chamal,

Chamal De Silva <chamal.desilva@gmail.com> wrote on 30.11.2005 12:55:27:

> Hi,
> 
> I wanted to post data to my Login Servlet running on WebSphere server.
> 
> This is my code,
> 
> //Initializing Apache HTTPClient
> 
>    HttpClient client = new HttpClient();
>    PostMethod post = new 
PostMethod("http://127.0.0.1:9080/MyApp/Login");
> 
>     InputStream in = null;
> 
>     post.addParameter("txtID",USER_ID);
>    post.addParameter("txtPWD","hoax");
>     int status = client.executeMethod(post);
> 
> But I do not get correct response from server.
> 
> When I check the server log files it says
> 
> com.ibm.ws.webcontainer.webapp.WebAppErrorReport: Method XPOST is not
> defined in RFC 2068 and is not supported by the Servlet API
> 
> 
> 
> Can u please help me to correct this error.
> 
Not without more information. Either you have played some tricks with
a custom POST method or changed some HttpClient code so that POST uses
XPOST as it's method name, or you have some issues with multithreading
or connection re-use, or you found a bug in HttpClient.

Please send a wire log and/or a complete test case for your problem.
http://jakarta.apache.org/commons/httpclient/logging.html

cheers,
  Roland


---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpclient-user-help@jakarta.apache.org


Mime
View raw message