hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Roland Weber <http-as...@dubioso.net>
Subject Re: cant't get HttpClient working
Date Sun, 08 Jan 2006 15:30:44 GMT
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,

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

View raw message