PHP curl报错“Problem (2) in the Chunked-Encoded data”解决方案
2017-08-21 19:40
309 查看
本文转载自 http://blog.csdn.net/billfeller/article/details/43059353
系统版本:Microsoft Windows 6.1.7601
PHP版本:PHP 5.3.29
php_curl.dll扩展版本:7.35.0
Windows环境下遇到一个很奇怪的问题,使用PHP curl发送请求报错:
错误码:56
错误信息:Problem (2) in the Chunked-Encoded data
但是使用浏览器直接访问又正常,怀疑是php_curl.dll扩展本身的bug,解决方案如下:
在php curl头部添加HTTP版本信息即可解决:
即可修复该问题。
作者:zhanhailiang 日期:2015-01-23
本地环境:系统版本:Microsoft Windows 6.1.7601
PHP版本:PHP 5.3.29
php_curl.dll扩展版本:7.35.0
Windows环境下遇到一个很奇怪的问题,使用PHP curl发送请求报错:
错误码:56
错误信息:Problem (2) in the Chunked-Encoded data
但是使用浏览器直接访问又正常,怀疑是php_curl.dll扩展本身的bug,解决方案如下:
在php curl头部添加HTTP版本信息即可解决:
curl_setopt($curl, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0);
即可修复该问题。
相关文章推荐
- PHP curl报错“Problem (2) in the Chunked-Encoded data”解决方案
- PHP curl报错“Problem (2) in the Chunked-Encoded data”解决方法
- php-curl ErrnoProblem (2) in the Chunked-Encoded data问题解决
- curl 返回false (实际原因:Problem (2) in the Chunked-Encoded data)
- Problem (2) in the Chunked-Encoded data解决
- This problem will occur when running in 64 bit mode with the 32 bit Oracle client components installed
- Some projects cannot be imported because they already exist in the workspace 解决方案
- net.sf.json.JSONException: There is a cycle in the hierarchy!错误解决方案
- some encountered problem and the solve methods when install Matlab in Linux
- net.sf.json.JSONException: There is a cycle in the hierarchy!错误解决方案
- net.sf.json.JSONException: There is a cycle in the hierarchy!错误解决方案
- 1374 - Confusion in the Problemset
- 继承“HibernateDaoSupport”后,报“The hierarchy of the type AccoutDaoImpl is inconsistent”的解决方案
- 14、 iOS "The sandbox is not in sync with the Podfile.lock"解决方案
- 虚拟机提示the virtual machine is in use by an application on your host computer的解决方案
- using sqlite in windows phone 7/successful to deal with the problem in wp to use like select chinese character
- 【亲测】Python:解决方案:Python Version 2.7 required, which was not found in the registry
- Solve the problem "Value was invalid" in .Net ICryptoTransform
- Not in the soders解决方案
- idea svn update 时不弹出选择分支的对话框,don't show this dialog in the furture解决方案