procedure SendData;
var
idhttp1:Tidhttp;
TmpStr:string;
begin
idhttp1:=Tidhttp.Create(nil);
Sparams:=Tstringlist.Create;
tmpstr:='http://www.kk.com/login.php'
sparams.Add('ffrma=sentsa&usrname=haha&pswdidvx=123&submit=Login+to+kk.com');
idsearch.Request.ContentType := 'application/x-www-form-urlencoded';
idhttp1.Request.ContentLength:=length(sparams.Text);
idsearch.Post(tmpstr,sparams);
end;
我本是想发送
ffrma=sentsa&usrname=haha&pswdidvx=123&submit=Login+to+kk.com
结果发送过去后变为
ffrma=sentsa%26usrname%3Dhaha%26pswdidvx%3D123%26submit%3DLogin+to+kk%2Ecom
有知道的告诉我一下,好吗。url编码怎么搞呢
QQ:402391462
如何让我可以发送给网站后是
ffrma=sentsa&usrname=haha&pswdidvx=123&submit=Login+to+kk.com
。谢谢
但分开后发送我发现
Sparams.Add('ffrma=sentsa');
Sparams.Add('usrname=haha');
Sparams.Add('pswdidvx=123');
Sparams.Add('submit=Login+to+kk.com');
会变成这样
ffrma=sentsa&usrname=haha&pswdidvx=123&submit=Login+to+kk.com&
最后还是多出一个&的字符。发送长度不对。网站还是没有回应 如何去掉&
还有呀Sparams.Add('submit=Login+to+kk.com');
加上后。会变成Login%2Bto%2BRainforestClicks%2Ecom&
这样