CURLOPT_POSTFIELDS有长度或大小限制? [英] CURLOPT_POSTFIELDS has a length or size limit?
问题描述
我想用api发送一些带有大量信息数据的POST数据,从服务器a到服务器b。
到服务器b,我只收到一部分的帖子数据,即使与htaccess我增加POST大小和其他。
php_value upload_max_filesize 400M
php_value post_max_size 400M
php_value max_execution_time 500
php_value max_input_time 400
php_value memory_limit 400M
使用curl发送的帖子数据有限制吗?或..任何人都知道如何解决这个问题?
通过POST发送数据没有限制,已在您的服务器中设置(php_value post_max_size 400M);
您可能想要检查超时值,请尝试增加当前值:
curl_setopt($ ch,CURLOPT_CONNECTTIMEOUT,60);
curl_setopt($ ch,CURLOPT_TIMEOUT,60);
这可能会在整个请求发送到服务器B之前关闭服务器A中的连接。 / p>
i want to send with an api some POST data with a large information data from server a to server b. Into server b, i receive only a part of posts data even if with htaccess i increased POST size and other.
php_value upload_max_filesize 400M
php_value post_max_size 400M
php_value max_execution_time 500
php_value max_input_time 400
php_value memory_limit 400M
There is a limit of posts data sent with a curl? or.. anybody know how to solve this problem?
Sending data via POST does not have a limit except for the one you have set in your server (php_value post_max_size 400M);
you might want to check your timeout value, try increasing your current value:
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 60);
curl_setopt($ch, CURLOPT_TIMEOUT, 60);
This might be closing your connection in server A before the entire request is sent to the server B.
这篇关于CURLOPT_POSTFIELDS有长度或大小限制?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!