http://flash.chinaren.com/ip/id.php参数传递的是什么?
http://flash.chinaren.com/ip/id.php参数传递的是什么? Delphi / Windows SDK/API
http://www.delphi2007.net/DelphiNetwork/html/delphi_20061212111303142.html
procedure TForm1.Button1Click(Sender: TObject);
var
LoginInfo:TStrings;
Response:TStringStream;
begin
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);
finally
LoginInfo.Free;
Response.Free;
end;
end;
为什么我得到应该有的数值?
http://www.delphi2007.net/DelphiNetwork/html/delphi_20061212111303142.html
procedure TForm1.Button1Click(Sender: TObject);
var
LoginInfo:TStrings;
Response:TStringStream;
begin
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);
finally
LoginInfo.Free;
Response.Free;
end;
end;
为什么我得到应该有的数值?
请帮忙看看
upup
假设Edit1.Text:='12';
可能就是这样的效果吧:
在IE里访问http://flash.chinaren.com/ip/id.php?ID=12
对呀 但是"http://flash.chinaren.com/ip/id.php?ID=12
"什么也得不到
UPUP