CURLPOST is too large to receive server information

Source: Internet
Author: User
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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.