Thanks Roland. Now it works ;) But I thought when I use the POST method I don't 
have to pass parameters in the URL. My understood was that only when I use the 
GET method all the data are included in the URL ?


"HttpClient User Discussion" <httpclient-user@jakarta.apache.org> schrieb am 
09.01.06 17:54:52:
> 
> Hi Lothar,
> 
> > I have a servlet which tries to read two parameters (ID, Type) from the 
> > incoming
> > request using request.getParameter(XXX) and then read the content of the 
> > request
> > (xml data in my case)  using request.getInputStream().read(...).
> 
> Then you will have to send the parameters as a query string in the URL:
> http://jakarta.apache.org/commons/httpclient/apidocs/org/apache/commons/httpclient/HttpMethod.html#setQueryString(org.apache.commons.httpclient.NameValuePair[])
> 
> The XML can be set as a StringRequestEntity.
> 
> If you set the parameters at the post method, the request body will be
> multipart MIME or form-URL-encoded, but you can't add any non-parameter
> data anymore.
> 
> hope that helps,
>   Roland
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


______________________________________________________________
Verschicken Sie romantische, coole und witzige Bilder per SMS!
Jetzt bei WEB.DE FreeMail: http://f.web.de/?mc=021193


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to