The following code is set
curl_setopt ($curl _obj, Curlopt_httpheader, Array ("Content-type:application/json"));
Post parameters are not passed, remove this code can be, what is the argument here?
Reply content:
The following code is set
curl_setopt ($curl _obj, Curlopt_httpheader, Array ("Content-type:application/json"));
Post parameters are not passed, remove this code can be, what is the argument here?
I don't know what method you are taking to receive this request. If you are using global variables $_post then surely it will not work.
Because, your content-type here is Application/json, the server will not regard him as a form request, will not parse him.
The value in $_post is the Content-type in the header that identifies the request, which is form-data to parse the data in the body and put it in $_post.
Also, why do you specify this content-type? It's a different way.
I also encounter the same problem, how to solve it? Thanks, man.