delphi7中,的TIDhttp控件。以下程序执行后,明明是上传成功了,但是不返回OK信息,怎么执行才能让知道put方法究竟是否成功执行呢var fs:TFileStream;
    Response:TStringStream;
    fileName:string;
begin
  fs:=TFileStream.Create('D1.doc',fmopenread);
  response:=TStringStream.Create('');
  
  try
    try
      IdHTTP1.Put('http://localhost/postfile/d1.doc',fs,response);
      showmessage('ok');
    except
      showmessage(response.DataString);
    end;  finally
    fs.Free;
    response.Free;
  end;
end;