#37894 [Opn->Fbk]: failed to open stream: HTTP request failed!
| From: | sniper@php.net | Date: | Sat, 22 Jul 2006 12:19:24 +0000 |
| Subject: | #37894 [Opn->Fbk]: failed to open stream: HTTP request failed! | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-99742@lists.php.net to get a copy of this message | ||
ID: 37894
Updated by: sniper@php.net
Reported By: roclar at gmail dot com
-Status: Open
+Status: Feedback
Bug Type: Filesystem function related
Operating System: Solaris 10
PHP Version: 4.4.2
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php5.2-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5.2-win32-latest.zip
Previous Comments:
------------------------------------------------------------------------
[2006-06-23 16:12:57] roclar at gmail dot com
That last comment was retreived using wget from the command
line on the server that hosts both the php script. It is
also the server where I am trying to pull the data from. If
I wget http://www.example.com directly, I get the data:
--12:10:28-- http://www.example.com/
=> `index.html'
Resolving www.example.com... 127.0.0.1
Connecting to www.example.com[127.0.0.1]:80... connected.
HTTP request sent, awaiting response... 200 OK
------------------------------------------------------------------------
[2006-06-23 15:30:29] tony2001@php.net
Again. Please try to connect to this web-server (aka example.com) using
a telnet or wget or something else from the server where the script is
located. I want you to do this because I suspect there is a firewall or
a proxy or some other reason which prevents you from connecting from one
server to another.
What you need to do: login to the server, run
telnet <example.com> 80
(or wget example.com/some_page.html), make sure you're able to get the
data.
------------------------------------------------------------------------
[2006-06-23 15:20:01] roclar at gmail dot com
<br />
<b>Warning</b>: main(http://www.example.com/) [<a
href='function.main'>function.main</a>]: failed to open
stream: HTTP request failed! in <b>/path/to/script/
testit.php</b> on line <b>3</b><br />
<br />
<b>Warning</b>: main() [<a
href='function.include'>function.include</a>]: Failed
opening 'http://www.example.com/' for
inclusion
(include_path='.:/usr/local/php/lib/php') in <b>/path/to/
script/testit.php</b> on line <b>3</b><br />
------------------------------------------------------------------------
[2006-06-23 15:14:58] tony2001@php.net
The "same result"? I.e. "unable to connect"?
------------------------------------------------------------------------
[2006-06-23 15:00:04] roclar at gmail dot com
I could use wget on the server and get the same result.
------------------------------------------------------------------------
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/37894
--
Edit this bug report at http://bugs.php.net/?id=37894&edit=1