You are viewing a plain text version of this content. The canonical link for it is here.
Posted to httpclient-users@hc.apache.org by Roland Weber <RO...@de.ibm.com> on 2005/12/01 11:55:29 UTC
Re: Can't post to web sphere server
Hi Chamal,
Chamal De Silva <ch...@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