Jump to content

HTTP request failed! HTTP/1.1 404


amarques

Recommended Posts

Hi,

 

I have a piece of code on one server that tries to open a file on another server.

I define the handle as:

 

$checklastserverlistupdate=fopen ("http://www.example.com/xxxxxxxx/yyyyyyy/serverlistupdated.php", "rb");

 

Annoyingly, when I execute the script, sometimes it makes the connection, but usually I get a ...failed to open stream: HTTP request failed! HTTP/1.1 404 in... error.

 

The file in example.com is available and can be reached on a browser. Any ideas on why this happens? Could it be that the path or filename is too long?

 

Any suggestions are welcome.

 

Thanks.

Link to comment
https://forums.phpfreaks.com/topic/95528-http-request-failed-http11-404/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.