公告
财富商城
积分规则
提问
发文
2019-05-21 08:15发布
贪生不怕死
Where can I see an example of HTTP POST request using boost::asio?
I've only saw some examples with HTTP GET requests.
Look at this http request header for example:
POST /path/script.cgi HTTP/1.0 From: test@tests.com User-Agent: HTTPTool/1.0 Content-Type: application/x-www-form-urlencoded Content-Length: 32 argument1=text&argument2=arg2text
Check out the get example and change the request to this. Probably alter whatever you think should be altered
See How are parameters sent in an HTTP POST request?
The ASIO part (sending the data) is similar to the example with GET. The difference is what data is sent (HTTP header and content).
最多设置5个标签!
Look at this http request header for example:
Check out the get example and change the request to this. Probably alter whatever you think should be altered
See How are parameters sent in an HTTP POST request?
The ASIO part (sending the data) is similar to the example with GET. The difference is what data is sent (HTTP header and content).