file_get_contents / url wrappers
| From: | Mike Dunlop | Date: | Mon, 27 Mar 2006 22:14:54 +0000 |
| Subject: | file_get_contents / url wrappers | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-232677@lists.php.net to get a copy of this message | ||
Hi gang,
If i am trying to read the contents of url into a string and I am getting 403 errors yet the page will load perfectly through a normal browser, do u think the site is looking at the http request headers and determining it's not a browser and thus blocking access? If something like that was happening, does anyone know what headers i should put into a request to simulate a browser?
error msg :: <...> failed to open stream: HTTP request failed! HTTP/1.1 403 Forbidden in <...>
Any info is much appreciated.
Thanks - MD
...................................................................
Mike Dunlop
Director of Technology Development
[ e ] miked@m80im.com
[ p ] 323.644.7808