如何与一个页面做交互 http://www.sou8.com/mobile_search.htm页面上面有个要求输入的框确定后返回一个值我用delphi该如何做并求到他的数值 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 发送一个Http请求到http://www.imobile.com.cn/simcard.php?simcard=[手机号码]然后取得返回HTML页面,在页面中取得所要的数据 tttk(网络芝麻) 就是这个意思!!!怎么写?qzmp_sc(你是白云~我是乌鸦) 不就是没有数据库吗 你有吗 可以直接使用WinINet API函数进行通讯。以下是基本步骤:InternetConnectHttpOpenRequestHttpSendRequestInternetReadFileInternetCloseHandle 或者你可以直接使用IdHttp组件进行通讯,这样通讯的细节你可以不用关心。 procedure TForm1.Button1Click(Sender: TObject);var LoginInfo:TStrings; Response:TStringStream; i:Integer; Cookie:string;begin Cookie:=''; Response := TStringStream.Create(''); LoginInfo := TStringList.Create; try LoginInfo.Clear; LoginInfo.Add('id='+trim(form1.Edit1.Text)); try IdHTTP1.Post('http://flash.chinaren.com/ip/id.php',LoginInfo,Response); except showmessage('登陆失败'); end; showmessage(Response.DataString); //从返回的页面中找出cookie finally LoginInfo.Free; Response.Free;end; end;可是没有取道我要的数值呀 delphi 多表查询问题,毕设进行中,十万火急 delphi编译时产生错误 string 如何转换为 pchar ,用了strpcopy,说是:Incompatible types: 'String' and 'PAnsiChar' delphi最好的界面控件 如何判断鼠标从Panel上移开 高手请进,高难度问题 请教几个关于函数的菜鸟问题 help me:http://www.csdn.net/expert/topic/373/373660.shtm 如何关闭打开的所有窗口? 如何在DELPHI实现选择目录的功能 【新手求助】socket网络通信 access数据库插入时间,老报错!
http://www.imobile.com.cn/simcard.php?simcard=[手机号码]
然后取得返回HTML页面,在页面中取得所要的数据
就是这个意思!!!怎么写?qzmp_sc(你是白云~我是乌鸦)
不就是没有数据库吗 你有吗
以下是基本步骤:
InternetConnect
HttpOpenRequest
HttpSendRequest
InternetReadFile
InternetCloseHandle
var
LoginInfo:TStrings;
Response:TStringStream;
i:Integer;
Cookie:string;
begin
Cookie:='';
Response := TStringStream.Create('');
LoginInfo := TStringList.Create;
try
LoginInfo.Clear;
LoginInfo.Add('id='+trim(form1.Edit1.Text));
try
IdHTTP1.Post('http://flash.chinaren.com/ip/id.php',LoginInfo,Response);
except
showmessage('登陆失败');
end;
showmessage(Response.DataString); //从返回的页面中找出cookie
finally
LoginInfo.Free;
Response.Free;
end;
end;
可是没有取道我要的数值呀