#36749 [NEW]: 'Error Fetching http body' when using HTTP Proxy
| From: | robertg2 at hope dot ac dot uk | Date: | Wed, 15 Mar 2006 19:00:36 +0000 |
| Subject: | #36749 [NEW]: 'Error Fetching http body' when using HTTP Proxy | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-94390@lists.php.net to get a copy of this message | ||
From: robertg2 at hope dot ac dot uk
Operating system: Windows XP & Suse 10
PHP version: 5.1.2
PHP Bug Type: SOAP related
Bug description: 'Error Fetching http body' when using HTTP Proxy
Description:
------------
When attempting to use an Amazon web service with our HTTP proxy server I
receive the SoapFault exception:
"[HTTP] Error Fetching http body, No Content-Length, connection closed or
chunked data"
When I go direct to the web service, i.e. do not use the proxy server, I
do not receive such an exception and instead receive a valid dataset from
Amazon.
Reproduce code:
---------------
$params = array('AWSAccessKeyId' => ANAMAZONACCESSKEY, 'Request' =>
array('IdType' => 'ASIN', 'ItemId' =>
array('1565924878'), 'ResponseGroup'
=> array('ItemAttributes')));
$client = new
SoapClient("http://webservices.amazon.com/AWSECommerceService/2006-02-15/UK/AWSECommerceService.wsdl",
array('proxy_host' => "172.16.0.2", 'proxy_port' => 8080));
$client->__soapCall('ItemLookup', array($params));
--
Edit bug report at http://bugs.php.net/?id=36749&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=36749&r=trysnapshot44
Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=36749&r=trysnapshot51
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=36749&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=36749&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=36749&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=36749&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=36749&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=36749&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=36749&r=support
Expected behavior: http://bugs.php.net/fix.php?id=36749&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=36749&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=36749&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=36749&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=36749&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=36749&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=36749&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=36749&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=36749&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=36749&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=36749&r=mysqlcfg