Date: 2008-07-09 18:02:07
In the examples that illustrate the use of Boost.Asio in more complex applications, there is the "boost_asio/example/http/client/sync_client.cpp" example.
In this example, the following code is written :
request_stream << "GET " << argv << " HTTP/1.0\r\n";
request_stream << "Host: " << argv << "\r\n";
request_stream << "Accept: */*\r\n";
request_stream << "Connection: close\r\n\r\n";
I would like to use the POST method with parameters instead of GET method, and to set the "Content-Type" property.
But I do not how to do. Could you tell me more about using the POST method and setting the "Content-Type" property ?
Could you also tell me where I can find documentation about it ?
Thank you for your response,
Sur le mail Voila, vous pouvez personnaliser lâanti-spam ! http://mail.voila.fr