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 Dan King <da...@yahoo.com> on 2009/04/03 18:34:33 UTC
Http Request that includes name value pairs and binary file data
In one http request, I'd like to send both name value pair information and binary file data. Is there a way, using HttpClient, to create one http request that includes both urlencoded and multipart content type?
Thanks,
Dan
Re: Http Request that includes name value pairs and binary file data
Posted by Dan King <da...@yahoo.com>.
Oleg,
using the HTTP headers to pass the name/value pairs did the trick. Thanks.
-Dan
________________________________
From: Oleg Kalnichevski <ol...@apache.org>
To: HttpClient User Discussion <ht...@hc.apache.org>
Sent: Friday, April 3, 2009 12:46:23 PM
Subject: Re: Http Request that includes name value pairs and binary file data
One could post binary content in the message body and use query
parameters or HTTP headers to pass name/value pairs.
Oleg
Re: Http Request that includes name value pairs and binary file data
Posted by Oleg Kalnichevski <ol...@apache.org>.
On Fri, Apr 03, 2009 at 09:34:33AM -0700, Dan King wrote:
> In one http request, I'd like to send both name value pair information and binary file data. Is there a way, using HttpClient, to create one http request that includes both urlencoded and multipart content type?
>
One could post binary content in the message body and use query
parameters or HTTP headers to pass name/value pairs.
Oleg
> Thanks,
> Dan
>
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
For additional commands, e-mail: httpclient-users-help@hc.apache.org