Jump to content

HTTP request failed


aye

Recommended Posts

Hi everyone!

Im trying to read a gzipped file on another webserver, but sometimes I am given the HTTP request failed error ([function.gzfile]: failed to open stream: HTTP request failed!), even though the file is still readable in the browser.. does anyone know what the cause of this error is and how it can be fixed?

Some help with this would be great :)

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

A small update: tried getting the data with file_get_contents() and file() instead and then it works fine (though gzipped). So it is obviously nothing wrong with the communication.. this error is driving me mad :(

could it be that the host doesn't allow reading the file gzfile or something?

Link to comment
https://forums.phpfreaks.com/topic/46754-http-request-failed/#findComment-227863
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.