doumin4553 2011-08-09 09:45
浏览 213
已采纳

无法打开流:HTTP请求失败! 需要HTTP / 1.1 407代理身份验证(ISA Server需要授权才能完成请求

I am strugling with this code:

$auth = base64_encode('domain\username:password');
$aContext = array(
    'http' => array(
        'proxy' => 'tcp://proxy:80',
        'request_fulluri' => true,
        'header' => "Proxy-Authorization: Basic $auth",
    ),
);
$cxContext = stream_context_create($aContext);

$sFile = file_get_contents("http://www.codecraft.gr", false, $cxContext);

echo $sFile;

i keep getting the following message

Warning: file_get_contents(http://www.codecraft.gr) [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 C:\wamp\www\test17\tarantula.php on line 17

the thing is that myusername and password are correct, and i realy cant find something to help me with that ISA server :S any suggestions?

  • 写回答

1条回答 默认 最新

  • doumeitang572461 2011-08-09 10:05
    关注

    "A typical error that you will encounter is error 407 Proxy Authentication Required this means that the authentication has been denied because the user has no valid user account in the domain or that the password has been entered incorrectly." Microsoft ISA Troubleshooting guide. You should probably check if the user has the correct resource permissions then.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 eda:门禁系统设计
  • ¥50 如何使用js去调用vscode-js-debugger的方法去调试网页
  • ¥15 376.1电表主站通信协议下发指令全被否认问题
  • ¥15 物体双站RCS和其组成阵列后的双站RCS关系验证
  • ¥15 复杂网络,变滞后传递熵,FDA
  • ¥20 csv格式数据集预处理及模型选择
  • ¥15 部分网页页面无法显示!
  • ¥15 怎样解决power bi 中设置管理聚合,详细信息表和详细信息列显示灰色,而不能选择相应的内容呢?
  • ¥15 QTOF MSE数据分析
  • ¥15 平板录音机录音问题解决