idhttp post 如何登陆百度? 高分请教 idhttp post 如何登陆百度?就是想 用 post 登陆 一个有用户名的网站例如百度 请给个例子 高分请教 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 function GetHtml(Url: string; Source: TStringList): integer; var IdHTTP: TIdHTTP; Ans: string; begin Result := 0; IdHTTP := TIdHTTP.Create(nil); try try Ans := IdHTTP.Post(Url, Source); Result := Length(Ans); ShowMessage(Ans); except on E: Exception do begin // end; end; finally IdHTTP.Free; end; end;var Source: TStringList;begin Source := TStringList.Create; try Source.add('userid=xxx'); Source.add('password=xxx'); GetHtml('www.xxxx.com', Source); finally Source.Free; end;end; 这是什么原因?? 谁有世纪飞扬(http://www.cstsoft.com.cn/china/index.html)的 Instrument VCL Pack 图形仪表控件的解密程序(急) 数据合并问题? delphi dbgrid按条件求和有一个问题 Delphi 中如何比较两个声音文件?急! ActiveX控件必须有界面吗? 报表打印中金额的打印问题 关于进度条ProgressBar1的用法? 各位大侠,前面我IE被黑的问题解决了 ,谢谢大家,但现在我的地址栏确不能输入地址按会车,这又如何解决?? 键的屏蔽 Delphi三层主从表巢状结构分段取数据问题 真冤~~
function GetHtml(Url: string; Source: TStringList): integer;
var
IdHTTP: TIdHTTP;
Ans: string;
begin
Result := 0;
IdHTTP := TIdHTTP.Create(nil);
try
try
Ans := IdHTTP.Post(Url, Source);
Result := Length(Ans);
ShowMessage(Ans);
except
on E: Exception do
begin
//
end;
end;
finally
IdHTTP.Free;
end;
end;var
Source: TStringList;
begin
Source := TStringList.Create;
try
Source.add('userid=xxx');
Source.add('password=xxx');
GetHtml('www.xxxx.com', Source);
finally
Source.Free;
end;
end;