commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Waldhoff, Rodney" <rwald...@us.britannica.com>
Subject RE: RFC: HttpClient: PostMethod Change Proposal
Date Thu, 17 Jan 2002 19:11:16 GMT
Paul C. Bryan wrote:

> I would like to propose a change to the PostMethod class, 
> to allow the request body to be optionally set directly 
> from an InputStream.  Presently, the only way a PostMethod's 
> request body can be se is through parameters.

>  I propose a new method: public void setRequestBody(InputStream), 
> which will read the input stream and populate the request body. 
> Checks will be in place to ensure only body can be set xor 
> parameters can be set. Most of the code would be adapted from 
> PutMethod.setRequestBody(InputStream).

> Your Opinion:
> [X] I agree with the proposal as outlined.
> Make it so.

Sounds reasonable to me.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message