Hello All. I'm afraid I'm in desperate need of help. I'm trying to understand why tabs and line feeds aren't coming through a POST request. Here's the code to reproduce:
POST request:
Code:str = "accountRequest=<NewUser>" & vbLf & _ "Hello" & vbTab & "World" & vbLf & _ "</NewUser>" Set objHTTP = Server.CreateObject("Msxml2.ServerXMLHTTP.3.0") objHTTP.open "POST", "service.asp", False objHTTP.setRequestHeader "Content-Type", "application/x-www-form-urlencoded" objHTTP.send str response.Write(objHTTP.responseText) Set objHTTP = Nothing
service.asp
output:Code:function w (str) response.Write(str & "<br>") end function str = request.Form("accountRequest") w(str) w("Tabs: "& InStr(str,vbTab)) w("Lines: "& InStr(str,vbLf))
Code:HelloWorld Tabs: 0 Lines: 0


Reply With Quote

Bookmarks