Re: Connection error on URI

From: Date: Wed, 28 Jan 2009 18:12:54 +0000
Subject: Re: Connection error on URI
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-287278@lists.php.net to get a copy of this message
Here's the output with the call to error_reporting(255); in place. Calling Sassnet... Warning: file_get_contents(http://xx.xx.xx.xx:1972/csp/test/SASS.Web1.cls?soap_method=FindMemBySASSNum&SNum=59) [function.file-get-contents]: failed to open stream: Connection timed out in /usr/sites/sassnet.com/members/www/url_test.php on line 6 I think the issue is not programming, but might be that the target server is not accepting requests from calling server. Skip Jan G.B. wrote:
2009/1/28 Skip Evans <skip@bigskypenguin.com>:
Hey all, $url="http://xx.xx.xx.xx:1972/csp/test/SASS.Web1.cls?soap_method=FindMemBySASSNum&SNum=".$user_sass; $xml_response = file_get_contents($url, true); But this transaction times out and returns an empty transaction, even with the call to urlencode, which I tried as a quick fix. If I paste the identical transaction into a browser it works fine.
Please call error_reporting(255); before your http-request starts, then post the error message you get. bye
-- ==================================== Skip Evans Big Sky Penguin, LLC 503 S Baldwin St, #1 Madison WI 53703 608.250.2720 http://bigskypenguin.com ------------------------------------ Those of you who believe in telekinesis, raise my hand. -- Kurt Vonnegut

« previous php.general (#287278) next »