代理服务器使用的是MS Proxy 2.0  IdHttp1.Request.ProxyServer := '10.1.0.1';
  IdHttp1.Request.ProxyPort   := 80;
  IdHttp1.Request.ProxyUsername := 'abc';
  IdHttp1.Request.ProxyPassword := '123';  psUrl:='http://www.sohu.com';
  s:=IdHttp1.Get(psUrl);
这样写后,返回407错误!

解决方案 »

  1.   

    我的可以:
        HTTP.Request.ProxyServer := '10.1.0.1';
        http.Request.ProxyUsername:='renzy';
        http.Request.ProxyPassword:='111';
        HTTP.Request.ProxyPort := 8080;
    //    http.Request.ProxyAuthenticate:='';
        HTTP.Request.ContentType := edContentType.Text;
      

  2.   

    你的代理服务器用的是MS Proxy 2.0吗?
      

  3.   

    不是,下面是代理服务器脚本的一部分:
     * Proxy autoconfig file for Netscape Navigator
     * Generated by iPlanet Web Proxy Server 3.6
     * Generated on Fri Apr 11 16:29:09 2003
      

  4.   

    用你的代理在ie里可以正常访问吗?我想代理服务器的ip和port都正确,程序应该不会有问题。