Php 文件获取apache下isa代理背后的内容
我正在开发一个脚本,用于访问远程站点数据。为此,我使用了Php 文件获取apache下isa代理背后的内容,php,proxy,Php,Proxy,我正在开发一个脚本,用于访问远程站点数据。为此,我使用了file\u get\u contents()函数。它在家里工作很好,但在办公室里没有连接。 在谷歌搜索之后,我发现使用了带有file\u get\u contents() 我的脚本如下,这是我从stackoverflow的线程中得到的 此输出有一个错误 [function.file-get-contents]: failed to open stream: HTTP request failed! HTTP/1.1 407 Proxy
file\u get\u contents()
函数。它在家里工作很好,但在办公室里没有连接。
在谷歌搜索之后,我发现使用了带有file\u get\u contents()
我的脚本如下,这是我从stackoverflow的线程中得到的
此输出有一个错误
[function.file-get-contents]: failed to open stream: HTTP request failed!
HTTP/1.1 407 Proxy Authentication Required ( The ISA Server requires
authorization to fulfill the request. Access to the Web P in
D:\php\docs\url.php on line 7
真正的问题是,在office中,他们使用ISA代理服务器,而我在apache上使用PHP
文件\u获取\u内容
通过代理服务器工作。
提前感谢我认为curl也会有同样的问题,需要使用代理头进行身份验证
[function.file-get-contents]: failed to open stream: HTTP request failed!
HTTP/1.1 407 Proxy Authentication Required ( The ISA Server requires
authorization to fulfill the request. Access to the Web P in
D:\php\docs\url.php on line 7