比如:
向 http://www.xxx.com/xxx.do,提交
并取得返回信息 

解决方案 »

  1.   

    看他能接受哪一種提交: POST?提交完再GET
      

  2.   

    function TForm1.GetData(url:string): string;
    var
      responseText: WideString;
      xmlHttp: oleVariant;
    begin
      Result:='';
      try
        xmlHttp:=CreateOleObject('Msxml2.XMLHTTP');
        xmlHttp.open('POST',url,false);
        xmlHttp.send();
        responseText:=xmlHttp.responseText;
        if xmlHttp.status='200' then
        begin
          Result:=responseText;
        end;
        xmlHttp := Unassigned;
      except
        Result:='';
      end;
    end;