ceylon
03-18-2009, 09:54 PM
Warning: file_get_contents(http://calltrack/xxx/xxx.asp?custid=16xx79) [function.file-get-contents]: failed to open stream: HTTP request failed! HTTP/1.1 401 Unauthorized
I get this error when trying to pull contents from this location, which is a customer database on our intranet. I was told by another associate that this is because it relies on the browser to authenticate my enviroment, and since its only being sent by the server it can't do this so I am rejected. I tried doing this further using curl, but I don't understand this well. Looking for someone who understands what I'm encountering and might offer some sort of insight towards a resolution. Would I need too use curl to pass the correct header/additional information (picking at straws here, I really don't understand curl processing past what I've written.)
I get this error when trying to pull contents from this location, which is a customer database on our intranet. I was told by another associate that this is because it relies on the browser to authenticate my enviroment, and since its only being sent by the server it can't do this so I am rejected. I tried doing this further using curl, but I don't understand this well. Looking for someone who understands what I'm encountering and might offer some sort of insight towards a resolution. Would I need too use curl to pass the correct header/additional information (picking at straws here, I really don't understand curl processing past what I've written.)