IdHTTP1.ProxyParams.Clear;   
  IdHTTP1.ProxyParams.ProxyServer := 'xx';     
  IdHTTP1.ProxyParams.ProxyPort   :=   xx;     
  IdHTTP1.ProxyParams.BasicAuthentication   :=   true;    试了一万遍了,都不行!  麻烦杀手给个成功的代码!
  
  谢了!

解决方案 »

  1.   

    我不知你用的是那个版本,我用D8自带的8.025可以这样用:
    procedure TForm1.Button1Click(Sender: TObject);
    var
      p:tmemorystream;
    begin
      p:=tmemorystream.Create;
      with IdHTTP1 do
      begin
         Request.ProxyServer := 'xxx.xxx.xxx';
          Request.ProxyPort   :=   3128;
          get('http://www.yyy.com',p);
          p.Position:=0;
          memo1.Lines.LoadFromStream(p);
      end;
    end;
      

  2.   

    我的是D7自带的Indy9,我上网查了很多,出现这个问题的人不少,其中还有写老美呢。我的情况是设置了代理后跟没设置前一样,根本没经过代理!不知道Indy10怎样?
      

  3.   

    Delphi编程乐园群:10748535,只谈技术,不聊天!
      

  4.   

    我用的D2006自带的,可以Delphi编程乐园群:10748535,群主轮流做,只谈技术,不聊天!
      

  5.   

    谢了ranzige 、 keiy !我找出原因了:我的代理设置了以后是可以通过的
                
                  但是,TIdHTTP的Connect方法不通过代理              得用其他方法。