1. what I encountered in my project today is that when I call the interface to POST data, the POST data volume is too large, resulting in failure to receive the returned information. 2. I tried Baidu and found that I wanted to set up a header. After I tried it, I was useless. I don't know if it was a problem with the TP framework? In this case, curl_setopt ($ ch, CURLOPT_H... 1. when calling the POST interface, the POST data volume is too large, leading to the failure to receive the returned information.
2. I tried Baidu and found that I wanted to set a header,No eggs are available after the test.Is it a problem with the TP framework?
In this case: curl_setopt ($ ch, CURLOPT_HTTPHEADER, array ('CT :'));
3. is there any other method when the curl post data is too large?
Reply content:
1. what I encountered in my project today is that when I call the interface to POST data, the POST data volume is too large, resulting in failure to receive the returned information.
2. I tried Baidu and found that I wanted to set a header,No eggs are available after the test.Is it a problem with the TP framework?
In this case: curl_setopt ($ ch, CURLOPT_HTTPHEADER, array ('CT :'));
3. is there any other method when the curl post data is too large?
First, use the interface debugging tool to test the interface, google's postman or mac's paw, set the parameter and post to see if any data is returned;
The framework does not affect the curl access interface;
Check the code to make sure that the curl is the data transmitted using post.