怎么获得组件链接产生的封包 求大神指教
像IDHTTP等组件怎么取返回的报文?
就是取回数据头之类的东西 而不是返回的真实数据
像IDHTTP.GET的话返回的是网页源码 我想获得他GET的数据包
组件链接产生的封包 用封包拦截软件里面产生的那种数据
[解决办法]
postList.Add('username=1');
postList.Add('password=1');
aIdHTTP.HandleRedirects := true;
aIdHTTP.Request.Accept := 'text/html, application/xhtml+xml, */*';
aIdHTTP.Request.AcceptLanguage := 'zh-CN';
aIdHTTP.Request.UserAgent := 'Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)';
aIdHTTP.Request.ContentType := 'application/x-www-form-urlencoded';
aIdHTTP.Post('http://www.xxx.cim/login', postList, Response);
memo1.lines.add(aIdHTTP.Response.RawHeaders.Text);