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:
http://wiki.apache.org/jakarta-httpclient/FrequentlyAskedApplicationDesignQuestions#head-481bfba2695be563137380a5aa6a26c7ae4d189a

cheers,
  Roland

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


Mime
View raw message