S
superplayboy
Unregistered / Unconfirmed
GUEST, unregistred user!
用ICS的HTTP控件POST数据以后,所有的回车都不见了
DataOut := TMemoryStream.Create;
Buf := 'user=xxxx&text=xxxxx...' //text比较长,包含回车
DataOut.Write(Buf[1], Length(Buf));
DataOut.Seek(0, soFromBeginning);
httpcli1.SendStream := DataOut;
httpcli1.RcvdStream := nil;
httpcli1.URL :='http://localhost/t.asp';
httpcli1.Post;
在T.ASP里
set fso=Server.CreateObject("Scripting.FileSystemObject")
set f=fso.CreateTextFile(server.mappath("d.txt"),true)
f.writeline request.form("text")
f.close
打开d.txt,所有的回车不翼而飞,怎么办?
DataOut := TMemoryStream.Create;
Buf := 'user=xxxx&text=xxxxx...' //text比较长,包含回车
DataOut.Write(Buf[1], Length(Buf));
DataOut.Seek(0, soFromBeginning);
httpcli1.SendStream := DataOut;
httpcli1.RcvdStream := nil;
httpcli1.URL :='http://localhost/t.asp';
httpcli1.Post;
在T.ASP里
set fso=Server.CreateObject("Scripting.FileSystemObject")
set f=fso.CreateTextFile(server.mappath("d.txt"),true)
f.writeline request.form("text")
f.close
打开d.txt,所有的回车不翼而飞,怎么办?