hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steven Terrell <Steven.Terr...@guideworkstv.com>
Subject RE: setRequestBody
Date Fri, 08 Jul 2005 21:11:45 GMT
Madeline,
   Try using:
     Post.setRequestEntity(new InputStreamRequestEntity())

--Steve

-----Original Message-----
From: Madeleine Wright [mailto:m.wright@ru.ac.za] 
Sent: Friday, July 08, 2005 4:35 PM
To: httpclient-user@jakarta.apache.org
Subject: setRequestBody

On http://jakarta.apache.org/commons/httpclient/methods/post.html 
(latest release), it suggests using:

post.setRequestBody(data);

But the API says this form is deprecated.  I want to include a 
FileInputStream as the request body.  Is there any other way of doing 
this or must I just use the deprecated form?

Also found this method suggested on: 
http://www.theserverside.com/articles/article.tss?l=HttpClient_FileUpload 
(2004).  If it's so useful, why has it been deprecated??

Thanks.

Madeleine




   

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

---------------------------------------------------------------------
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