I'm having problems using file_get_contents
when the URL I'm getting contents from uses X-AUTH authentication. I do have a X-AUTH token but I'm not really sure how to tie it in to file_get_contents
. As a result of this I get an error when visiting the page in the browser, part of which is:
Warning: failed to open stream: HTTP request failed! HTTP/1.1 401 Unauthorized
I've never had many dealings with file_get_contents
nevermind using it with X-AUTH so I'm a bit stuck!
Any help would be much appreciated.
Thanks