#36749 [Opn->Fbk]: 'Error Fetching http body' when using HTTP Proxy
| From: | tony2001@php.net | Date: | Thu, 16 Mar 2006 07:40:36 +0000 |
| Subject: | #36749 [Opn->Fbk]: 'Error Fetching http body' when using HTTP Proxy | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-94407@lists.php.net to get a copy of this message | ||
ID: 36749
Updated by: tony2001@php.net
Reported By: robertg2 at hope dot ac dot uk
-Status: Open
+Status: Feedback
Bug Type: SOAP related
Operating System: Windows XP & Suse 10
PHP Version: 5.1.2
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php5.1-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5.1-win32-latest.zip
Previous Comments:
------------------------------------------------------------------------
[2006-03-15 20:04:54] robertg2 at hope dot ac dot uk
I forgot to mention that other SOAP clients using the same SOAP
extension on the same box with the same HTTP proxy server work!
------------------------------------------------------------------------
[2006-03-15 20:00:35] robertg2 at hope dot ac dot uk
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 this bug report at http://bugs.php.net/?id=36749&edit=1