>From Dean Michael Berris on Tuesday, February 16, 2010 3:16 PM
>Yes, it is possible. You can already use the cpp-netlib client to
download in HTTP 1.0 mode binary data -- there are even tests packaged
in the library to prove it.
That's great! Does it work from the server side, too? Are there plans
for HTTP 1.1 support?
>Have you encountered a bug that's not allowing you to download binary
data using the HTTP client?
Not at all... I was just trying to understand what was possible- here's
my original question
****************************
Is there any reason I can't send a binary response?
For example, the hello_world_server has
response = server::response::stock_reply(server::response::ok, "Hello,
World!");
Could I fill a string with binary data and send it like this?
String s("\0\0\0\0\0")
response = server::response::stock_reply(server::response::ok, s);
and get it out on the client side? If so, would I use
boost::network::body(response) on the client side, or something else?
********************************
I haven't actually tried it- can you comment on the original question?
I poked around in the tests but didn't find the test that has an example
of binary transfer.
Thanks
Erik
------------------------------------------------------------------------------
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
_______________________________________________
Cpp-netlib-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cpp-netlib-devel