S
sunnyfairy
Unregistered / Unconfirmed
GUEST, unregistred user!
比如我想登录校内网www.xiaonei.com代码如下:var ts: TStringStream; S: string;begin IdHTTP1.HandleRedirects := True; IdHTTP1.Request.ContentType := 'application/x-www-form-urlencoded'; ts := TStringStream.Create('email=85580499@qq.com&password=ser&origURL=http%3A%2F%2Fwww.xiaonei.com%2FSysHome.do&formName=&method=&submit=%E7%99%BB%E5%BD%95'); //此数据是用HttpWatch Pro获取的,应该是没错的. try IdHTTP1.Request.Referer := 'http://login.xiaonei.com/Login.do'; S := IdHTTP1.Post('http://login.xiaonei.com/Login.do', ts); //其它处理..... finally ts.Free; end;end;