Boost asio c++ methode Post with ACCESS TOKEN -
i try send post request web server token access receive "400 bad request" receive access token (in get) receive other information can't write correctly request :
request_stream << "post "<<path<<"access_token="<<token<<" http/1.0 \r\n"; request_stream << "host:" << host << "\r\n"; //request_stream << "authorization: basic "<<token request_stream << "content-type: application/json; charset=utf-8 \r\n"; request_stream << "accept: */*\r\n"; request_stream << "content-length: " << json55.length() << "\r\n"; request_stream << "connection: close\r\n\r\n"; //note double line feed request_stream << json55;
i searched in documentation of boost asio librairy(c++) not existing information case
tankhs help
Comments
Post a Comment