You are viewing a plain text version of this content. The canonical link for it is here.
Posted to httpclient-users@hc.apache.org by webtekie <we...@gmail.com> on 2006/08/01 19:51:30 UTC

writing bytes using HTTPClient

Hello,

How can I write bytes to be posted to url using httpclient? I found example
by subclassing RequestEntry, but can I use HttpConnection to avoid this,
how?

thanks,
webtekie

Re: writing bytes using HTTPClient

Posted by webtekie <we...@gmail.com>.
thanks Roland.

On 8/2/06, Roland Weber <RO...@de.ibm.com> wrote:
>
> Hello,
>
> webtekie <we...@gmail.com> wrote on 01.08.2006 19:51:30:
>
> > How can I write bytes to be posted to url using httpclient? I found
> example
> > by subclassing RequestEntry, but can I use HttpConnection to avoid this,
>
> No you can't. If you insist on _writing_ bytes instead of having them
> read by one of the standard RequestEntity implementations, you have to
> implement your own.
>
>
> http://jakarta.apache.org/commons/httpclient/apidocs/org/apache/commons/httpclient/methods/RequestEntity.html
>
> cheers,
>   Roland
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: httpclient-user-help@jakarta.apache.org
>
>

Re: writing bytes using HTTPClient

Posted by Roland Weber <RO...@de.ibm.com>.
Hello,

webtekie <we...@gmail.com> wrote on 01.08.2006 19:51:30:

> How can I write bytes to be posted to url using httpclient? I found 
example
> by subclassing RequestEntry, but can I use HttpConnection to avoid this,

No you can't. If you insist on _writing_ bytes instead of having them
read by one of the standard RequestEntity implementations, you have to
implement your own.

http://jakarta.apache.org/commons/httpclient/apidocs/org/apache/commons/httpclient/methods/RequestEntity.html

cheers,
  Roland


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