rubing Posted October 26, 2008 Share Posted October 26, 2008 I am trying to parse an xml/rss url, however when I try to get the url i get a http 304 not modified error. For example if I try to retrieve the file using file_get_contents, I receive the following error: Warning: file_get_contents(http://www.xroxy.com/rss) [function.file-get-contents]: failed to open stream: HTTP request failed! HTTP/1.1 304 Not Modified in /home/rubing/public_html/mysite.com/public/xml.php on line 2 I guess this is b/c apache is keeping a cached copy of this page?? How do I tell it not to cache it. Or alternatively retrieve this cached copy?? THank you very much! Quote Link to comment Share on other sites More sharing options...
genericnumber1 Posted October 26, 2008 Share Posted October 26, 2008 It seems like that website keeps people from making multiple requests... Try it yourself, go to the URL, and then use ctrl-f5 (reload without cache) you'll get the same problem. It's forcing people to use cache to save it the bandwidth. It's not your server, it's the way they handle multiple subsequent requests from the same IP. Quote Link to comment Share on other sites More sharing options...
rubing Posted October 26, 2008 Author Share Posted October 26, 2008 Really!! What a bunch of assholes! I guess I'll have to find a proxy to use. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.