#36749 [Fbk->Opn]: 'Error Fetching http body' when using HTTP Proxy
ID: 36749 User updated by: robertg2 at hope dot ac dot uk Reported By: robertg2 at hope dot ac dot uk -Status: Feedback +Status: Open Bug Type: SOAP related Operating System: Windows XP & Suse 10 PHP Version: 5.1.2 New Comment: Checked it out - the other services contain a 'Content-Length' HTTP header in the response to the soapcalls. The amazon.com ItemLookup service referred to in this report does not. Previous Comments: [2006-03-18 21:10:36] [EMAIL PROTECTED] How do I know that? If you can check it out - please do it and tell us. [2006-03-18 20:56:28] robertg2 at hope dot ac dot uk That is correct. I don't pretend to have a full grasp of the problem, but may I suggest/speculate/guess that those web services that work through the proxy for me either use chunked data or specify a value in the Content-length header in their response(s). [2006-03-18 20:42:13] [EMAIL PROTECTED] Wait.. so other PHP scripts using different web-service providers work fine on the same host using the same proxy? [2006-03-16 13:20:55] robertg2 at hope dot ac dot uk Tried the Windows snapshot but the behaviour remains the same. Below is the amazon server's response to the soapCall - I've just included the HTTP headers as bugs.php.net complains about spam when I try to paste the whole transmission. Please note that the HTTP proxy in question is Novell Bordermanager. [From Req: POST http://soap.amazon.co.uk:80/onca/soap?Service=AWSECommerceService HTTP/1.1] HTTP/1.1 200 OK Date: Thu, 16 Mar 2006 12:03:46 GMT Server: Server x-amz-id-1: 186E30BANSXGCJBQR9WQ x-amz-id-2: z8a87t9KGWDEOYfe05tzt+5e06YHAlwFdaMdZTghHHk= Content-Type: text/xml; charset=UTF-8 Proxy-Connection: close Age: 0 [2006-03-16 08:40:35] [EMAIL PROTECTED] 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 The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/36749 -- Edit this bug report at http://bugs.php.net/?id=36749&edit=1
#36749 [Fbk->Opn]: 'Error Fetching http body' when using HTTP Proxy
ID: 36749 User updated by: robertg2 at hope dot ac dot uk Reported By: robertg2 at hope dot ac dot uk -Status: Feedback +Status: Open Bug Type: SOAP related Operating System: Windows XP & Suse 10 PHP Version: 5.1.2 New Comment: That is correct. I don't pretend to have a full grasp of the problem, but may I suggest/speculate/guess that those web services that work through the proxy for me either use chunked data or specify a value in the Content-length header in their response(s). Previous Comments: [2006-03-18 20:42:13] [EMAIL PROTECTED] Wait.. so other PHP scripts using different web-service providers work fine on the same host using the same proxy? [2006-03-16 13:20:55] robertg2 at hope dot ac dot uk Tried the Windows snapshot but the behaviour remains the same. Below is the amazon server's response to the soapCall - I've just included the HTTP headers as bugs.php.net complains about spam when I try to paste the whole transmission. Please note that the HTTP proxy in question is Novell Bordermanager. [From Req: POST http://soap.amazon.co.uk:80/onca/soap?Service=AWSECommerceService HTTP/1.1] HTTP/1.1 200 OK Date: Thu, 16 Mar 2006 12:03:46 GMT Server: Server x-amz-id-1: 186E30BANSXGCJBQR9WQ x-amz-id-2: z8a87t9KGWDEOYfe05tzt+5e06YHAlwFdaMdZTghHHk= Content-Type: text/xml; charset=UTF-8 Proxy-Connection: close Age: 0 [2006-03-16 08:40:35] [EMAIL PROTECTED] 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 [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
#36749 [Fbk->Opn]: 'Error Fetching http body' when using HTTP Proxy
ID: 36749 User updated by: robertg2 at hope dot ac dot uk Reported By: robertg2 at hope dot ac dot uk -Status: Feedback +Status: Open Bug Type: SOAP related Operating System: Windows XP & Suse 10 PHP Version: 5.1.2 New Comment: Tried the Windows snapshot but the behaviour remains the same. Below is the amazon server's response to the soapCall - I've just included the HTTP headers as bugs.php.net complains about spam when I try to paste the whole transmission. Please note that the HTTP proxy in question is Novell Bordermanager. [From Req: POST http://soap.amazon.co.uk:80/onca/soap?Service=AWSECommerceService HTTP/1.1] HTTP/1.1 200 OK Date: Thu, 16 Mar 2006 12:03:46 GMT Server: Server x-amz-id-1: 186E30BANSXGCJBQR9WQ x-amz-id-2: z8a87t9KGWDEOYfe05tzt+5e06YHAlwFdaMdZTghHHk= Content-Type: text/xml; charset=UTF-8 Proxy-Connection: close Age: 0 Previous Comments: [2006-03-16 08:40:35] [EMAIL PROTECTED] 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 [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