On Sat, Dec 4, 2010 at 4:13 AM, Raindog <[email protected]> wrote:
> On 12/2/2010 7:24 PM, Dean Michael Berris wrote:
>>
>> Let me know if you need any more information regarding how to make the
>> file contents part of the POST request.
>>
>>
> That would be great if you could. I'm not familiar with HTTP hence why I
> wanted to use your library =). I know that I need a content length and
> some field designating the encoding used, but I don't know how I would
> separate the query string parameters from the actual file being uploaded.
>

That's easy:

http::client c;
http::client::request req("http://example.com/path?p=0&q=1";);
http::client::response res = c.post(req, "The contents of the POST body here.");

> Thanks!

You're welcome and I hope that helps.

-- 
Dean Michael Berris
deanberris.com

------------------------------------------------------------------------------
What happens now with your Lotus Notes apps - do you make another costly 
upgrade, or settle for being marooned without product support? Time to move
off Lotus Notes and onto the cloud with Force.com, apps are easier to build,
use, and manage than apps on traditional platforms. Sign up for the Lotus 
Notes Migration Kit to learn more. http://p.sf.net/sfu/salesforce-d2d
_______________________________________________
Cpp-netlib-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cpp-netlib-devel

Reply via email to