idHTTP.DoRequest(hmGet, sDownloadURL, nil, nil);
    while not aManager.arStop[iIndex] and (iLeft > 0) do
      if iLeft > BufferSize then
        begin
          idHTTP.ReadBuffer(Buffer, BufferSize);
          fs.WriteBuffer(Buffer, BufferSize);
        end
      else
        begin
          idHTTP.ReadBuffer(Buffer, iLeft);
          fs.WriteBuffer(Buffer, iLeft);请教大家INDY10是如何写以上代码的。。

解决方案 »

  1.   

    差不多的应该有Get Post等方法直接调用吧
      

  2.   

    自己已经解决了。代码如下:、
    idHTTP.DoRequest(hmGet, sDownloadURL, nil, nil); 
    对应于idHTTP.Head()
      

  3.   

    请问楼主如何解决的啊,我也遇到了同样的问题。如果用idHTTP.Head()代替DoRequest,那后面的ReadBuffer用什么代替啊
      

  4.   

    请问楼主,这代码是怎么改成功的,我也正在找这方面的资料,ReadBuffer用什么来代替的呢?