我被要求为帐户创建设置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

%>

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top