hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ossf...@dubioso.net
Subject Re: Send InputStream via PostMethod
Date Mon, 10 Dec 2007 15:00:01 GMT
> Hm, the order of adding parameter and setting the request entity is very
> important and also confusing.

No, it's not. You do one or the other, never both.

> Why should the request body always be cleared when adding parameters or
> setting the request entity?

Because POST parameters need to be encoded in a
request entity. Either you leave that to HttpClient,
or you do it yourself.

See also our Application Design FAQ:


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

View raw message