给个详细的例子。
尤其 是 用 cookie的。
尤其 是 用 cookie的。
解决方案 »
- 问一个有关软件合法性的问题,有见解的朋友进来讨论一下
- 不知那個報表能夠響應雙擊事件,並能獨得雙擊位置的數據。
- 请高手进来看下,应该不是很难的问题,但我不会了
- 新人问关于 delphi+sql server2000开发MIS的简单问题,请老鸟耐心帮忙提示下
- 如何让messagedlg('you sure leave?',mtconfirmation,[mbyes],0)的提示框的关闭铵钮失效?
- 寻数字签名工具
- >>>> 批处理方式下,调用UpdateBatch怎么跟踪每一条记录?
- double 用什么函数转成string
- 在程序中如何创建临时表?
- Delphi的SQL Build 实在是太垃圾了~~~有代替品吗?
- 我在DCOM服务器端怎么获的访问者的IP地址?
- 为什么输入filelist.后没有itemindex?
sends:='POST /regurl/regform.asp HTTP/1.1'+#13#10;
sends:=sends+'Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-powerpoint, application/vnd.ms-excel, application/msword, */*'+#13#10;
sends:=sends+'Accept-Language: zh-cn'+#13#10;
sends:=sends+'Content-Type: application/x-www-form-urlencoded'+#13#10;
sends:=sends+'Accept-Encoding: gzip, deflate'+#13#10;
sends:=sends+'User-Agent: Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)'+#13#10;
sends:=sends+'Host: db.sohu.com'+#13#10;
对于数据,必须经过nmurl编码。以下实现数据段(sendp就是数据段)
url.InputString := combobox2.Text;
sendp:='Step=Create&ClassKey='+url.Encode ;
url.inputstring := adoquery1.fieldvalues['文章名']+' 发布者:'+ adoquery1.fieldvalues['作者'] ;
sendp:=sendp+'&SiteName='+url.Encode;
url.inputstring:=edit5.text+'?id='+inttostr(adoquery1.fieldvalues['id']) ;
sendp:=sendp+'&URL='+url.Encode;
url.inputstring:= edit6.text;
sendp:=sendp+'&Description='+url.Encode;
sendp:=sendp+'&Keywords=';
url.inputstring:= edit3.text;
sendp:=sendp+'&EffDate=&ExpDate=&Contact=&EMail='+url.Encode+'&B1=%B5%DD%BD%BB';
sends:=sends+'Content-Length: '+inttostr(length(sendp))+#13#10;
sends:=sends+'Connection: Keep-Alive'+#13+#10+#13#10 +sendp;
clientsocket1.Socket.SendText(sends);其实很简单的一个东西,不要想得太复杂