Hi Roland,

I've just found out that when I use addParameters(..) before calling 
method.setRequestBody the parameters are not available in the post method. But 
when I first call setRequestBody and then adding parameters it works fine. Very 
confusing ;)


Lothar



"HttpClient User Discussion" <httpclient-user@jakarta.apache.org> schrieb am 
08.01.06 16:30:50:
> 
> Hello Lothar,
> 
> > HttpClient client = new HttpClient();
> > PostMethod method = new PostMethod(URL);
> > method.setRequestHeader("Content-type", "text/xml; charset=ISO-8859-1");    
> >         
> 
> Content type "text/xml" is highly inappropriate for posted data. Don't
> set the content type at all, let the PostMethod insert the correct one.
> 
> 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