S
shuaikiller
Unregistered / Unconfirmed
GUEST, unregistred user!
procedure TForm1.Button1Click(Sender: TObject);var S: TStringList; R: TStringStream;begin S := TStringList.Create; R := TStringStream.Create(''); try S.Clear; S.Add('id=test'); S.Add('pwd=123456'); IdHTTP1.ReadTimeout := 30*1000; IDHttp1.HandleRedirects := True; IDHttp1.Request.ContentType := 'application/x-www-form-urlencoded'; IDHttp1.Post('http://localhost/test.aspx',S,R); R.Position := 0; Memo1.Lines.LoadFromStream(R); finally S.Free; R.Free; end;end;test.aspx程序 protected void Page_Load(object sender, EventArgs e) { string id = Request.QueryString["id"]; string pwd = Request.QueryString["pwd"]; Response.Write("id=" + id + "/r/n"); Response.Write("pwd=" + pwd + "/r/n"); }结果没有返回信息,请问哪里出错了?