Post_head="HTTP/1.1 POST % s \ r \ n"
Host: "% s \ r \ n"
"Connect: keep - the alive \ r \ n"
"The user-agent: Mozilla \ r \ n"
"Catch - Control: no store \ r \ n"
"The content-type: application \ json \ r \ n"
"Accept: */* \ r \ n"
"The Content - Length: % d \ r \ n"
"The \ r \ n
""% s"
CodePudding user response:
It's convenient for the URL to send, generally do not need to Request to the Content - LengthCodePudding user response:
Just react, your method using the POST method, are commonly when browser to access the GET method, although the URL, but if the method is different, also considered to find resources,Change the POST to GET,