delphi idhttp post

来源:互联网 发布:朝鲜第五次核试验知乎 编辑:程序博客网 时间:2024/05/17 03:13
const
 sposturl='http://lede100.wicp.net:9600/mybs/bs/testpost.php';
procedure TForm1.Button3Click(Sender: TObject);
var
postcmd:TStringList;
http:TIdHTTP;
begin
     http:=   TIdHTTP.Create(Application);
    try
      postcmd:=TStringList.Create;
    postcmd.Add('autoget=1');
    postcmd.Add('logintype=0');
     Memo1.Text:=http.Post(sposturl,postcmd) ;
    finally


     FreeAndNil(http);
    end;






end;
0 0
原创粉丝点击