如果在 post 同时 把 COOKIE的内容一同发给服务器?
网上找了好半天,特发帖求解
网上找了好半天,特发帖求解
解决方案 »
- 如何获取FastReport中 MasterData 展开后总高度???
- 问个算法的问题如何设置软件的使用天数
- 为什么我用Delphi的dbgrid显示ACCESS的数据时候,数据没有按顺序显示?
- 两个问题,请高手回答!
- 会水晶报表的请进!
- 有兴趣,不妨请来试一试
- 请问delphi5中有没有delphi6中的object treeview功能
- 我是新手:ADO 问题?
- 统计:程序开发用到三层结构,中间层为IBM CICS或者BEA TUXEDO的但不太熟悉的朋友签名。我想发布些资料。(内空)
- 请各位大虾帮忙看看这条循环语句应该怎样写?
- ListView多行加载数据的问题
- 想问下Object Inspector是什么
aidhttp.Request.CustomHeaders.Text := Cookie;
Delphi 2010,XE可以登陆后直接POST就可以了,不用自定义COOKIE
不明白是什么意思.
你加入参数的话就使用Post(url,Patamstr);这样就行啊
procedure TForm1.Button1Click(Sender: TObject);
begin idhttp1.AllowCookies:=true;
idhttp1.Request.SetHeaders;
idhttp1.Request.CustomHeaders.Text:=Trim('Cookie:123;sign=123' );
idhttp1.HandleRedirects:= true;
idhttp1.Request.UserAgent := 'OS/1.0';//自定义客户端的签名
idhttp1.request.ContentType:='application/x-www-form-urlencoded';//使用POST方式提交时候
idhttp1.Request.Referer :='http://xxx.xx.xx';
idhttp1.Request.Host:='http://xxx.xx.xx';end;
问题已经搞定,某些参数需要POST提交,某些谁彩种COOKIE方式提交,防止被窃听。