1--delphi中的NMHTTP的用法:
NMHTTP1.Post('http://127.0.0.1/test.asp',str);**************************************************************
2---test.asp可以这样写,以便验证收到的HTTP请求数据是否正确:
<%call WriteLogFileSub WriteLogFile
Const ForReading = 1, ForWriting = 2, ForAppending = 8
Dim fso, f
Set fso = CreateObject("Scripting.FileSystemObject")
Set f = fso.OpenTextFile("f:\testLOG.txt", ForWriting, True)
f.Write "嗨,你好!"+Request.Form
f.Close
End Sub%>
NMHTTP1.Post('http://127.0.0.1/test.asp',str);**************************************************************
2---test.asp可以这样写,以便验证收到的HTTP请求数据是否正确:
<%call WriteLogFileSub WriteLogFile
Const ForReading = 1, ForWriting = 2, ForAppending = 8
Dim fso, f
Set fso = CreateObject("Scripting.FileSystemObject")
Set f = fso.OpenTextFile("f:\testLOG.txt", ForWriting, True)
f.Write "嗨,你好!"+Request.Form
f.Close
End Sub%>
打开testLOG.txt看:
收到的HTTP请求数据中,很多%%%%,正在想办法解决