delphi 的什么控件可以接受response 过来的数据 我想做一个程序 用于接受网站response过来的程序 谢谢ASP网站response的数据 delphi可以直接接收吗 请问各位大侠需要用到什么控件 我感觉直接接收好一点 不然好麻烦
解决方案 »
- 帮我看看...无法加载数据库文件
- 我想在delphi下启动linux上的程序,请问怎么实现啊..
- 点击按扭向edit中添加文本时,如何让其在当前光标位置添加?
- 关于UDP的几个疑问
- 如何判断或者得知 AdoConnection的数据库连接已经断开(由于数据库服务器已经关闭的情况下!)
- 怎么访问一个类的私有或者保护函数?
- 如何用欧几里德算法对两个Edit控件中的数进行约分,并把结果显示在两个label控件里
- 请各位高手指点如何学习ASP!
- 寻找delphi开发web server的资料。
- 在别人的电脑上打开,每次都会弹出安全警告框,如何才能避免?
- 在simplegrah控件上画线。并让线可以平形移动
- 猜猜jinjazz会提供哪个答案?
var
url:string;
xmlHttp:Olevariant;
responseText:Widestring;
begin
url:='http://xxx.cn/xx.asp';
try
xmlHttp:=CreateOleObject('Msxml2.XMLHTTP');
xmlHttp.open('POST',url,false);//如果只获得数据可以将POST修改成GET
xmlHttp.send('a111111----111111');
responseText:=xmlHttp.responseText;
if xmlHttp.status='200' then
begin
//--ShowMessage(responseText);
end
else
begin
//--
end;
except
On E:Exception do
//--
end;
end;
url:string;
xmlHttp:Olevariant;
responseText:Widestring;
begin
url:='http://xxx.cn/xx.asp';
try
xmlHttp:=CreateOleObject('Msxml2.XMLHTTP');
xmlHttp.open('POST',url,false);//如果只获得数据可以将POST修改成GET
xmlHttp.send('a111111----111111');
responseText:=xmlHttp.responseText;
if xmlHttp.status='200' then
begin
//--ShowMessage(responseText);
end
else
begin
//--
end;
except
On E:Exception do
//--
end;
end;ASP站 get数据到delphi软件所在的服务器上您写的这段程序 怎么样才能接受到呢? 我只想接收谢谢 最好能用idhttp.get 接收下 能给下示范吗
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, Buttons, Comobj;type
TForm1 = class(TForm)
BitBtn1: TBitBtn;
procedure BitBtn1Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;var
Form1: TForm1;implementation{$R *.dfm}procedure TForm1.BitBtn1Click(Sender: TObject);
var
url:string;
xmlHttp:Olevariant;
responseText:Widestring;
begin
url:='http://xxx.cn/xx.asp';//你要调用的url
try
xmlHttp:=CreateOleObject('Msxml2.XMLHTTP');
xmlHttp.open('GET',url,false);
xmlHttp.send();
responseText:=xmlHttp.responseText;
if xmlHttp.status='200' then
begin
ShowMessage(responseText);//这里显示的就是接收到的数据
end
else
begin
ShowMessage('有错误');
//--
end;
except
On E:Exception do
//--
ShowMessage('调用过程出现异常');
end;
end;end.