带有选项卡的HTTP POST请求分隔字段
-
14-11-2019 - |
题
我被要求为帐户创建设置Web服务。intbount http post请求包含一个包含标签的单个格式化字段,其中包含标记中的标头行的分隔字段。
这是一个样本:
accountRequest=<NewUser>
userName password fName lName
ABC123 wzbtw88g Joe Bloggs
</NewUser>
.
任何人都可以帮助我了解如何用经典的ASP解析它?
解决方案
extract the values into a string and do something like this
<%
str="userName password fName lName ABC123 wzbtw88g Joe Bloggs"
arr=split(str,vbTab)
for i=lbound(arr) to ubound(arr)
response.write i & "=" & arr(i) &"<BR>"
next
%>
不隶属于 StackOverflow