Jump to content

Failed/Bad Requests from a localserver.


Bladescope

Recommended Posts

Hey awesome ones :3,

 

I've been making my own rss reader, sortof.

 

The sortof is down to a problem I'm having on my local server (Apache 2.2.8). Using Firefox (untested on IE), everytime I make a request using simplexml, It's pulling back some odd results.

 

For gmail, The request fails completely, it brings back

Warning: simplexml_load_file() [function.simplexml-load-file]: I/O warning : failed to load external entity "https://-snip-:[email protected]/gmail/feed/atom" in D:\AppServ\www\webPortal\gmail.php  on line 2

 

For facebook, the request brings back a huge amount of warnings which suggest the page being returned is a HTML file.

 

So then I tried file_get_contents() which produced strange results too.

 

For gmail, the result was

Warning: file_get_contents(https://[email protected]/gmail/feed/atom) [function.file-get-contents]: failed to open stream: Invalid argument in D:\AppServ\www\webPortal\gmail.php  on line 2

 

For facebook, the result was a facebook page, fully formatted and such, telling me I was using an invalid browser.

 

Oddly enough, I have a small rss feed on my hosted site which worked when I tested it with simplexml.

 

So I can't seem to figure out what the problem is. On that note, I was hoping I could get a little bit of help from the community.

 

Any help on this is so greatly appreciated!

 

Regards,

Bladescope

Link to comment
https://forums.phpfreaks.com/topic/202689-failedbad-requests-from-a-localserver/
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.