84669 人が学習中
152542 人が学習中
20005 人が学習中
5487 人が学習中
7821 人が学習中
359900 人が学習中
3350 人が学習中
180660 人が学習中
48569 人が学習中
18603 人が学習中
40936 人が学習中
1549 人が学習中
1183 人が学習中
32909 人が学習中
求教用XMLHTTP提交JSON,在服务器端如何获取?不是.Net的哦
先前为一客户接入梦网云通讯平台的短信接口,发送可以 urlencode json xml 但是返回只有 json 或者是xml,目前我使用的json提交 返回json
参考一下代码
sUrl = "http://localhost/UserLogin/"
stext = "{""A"":""1"",""P"":""9630111""," "Email"":""iamm"",""PassWord"":""111111""}"
Set WS1 = Server.CreateObject("MSXML2.XMLHTTP")
WS1.open "POST",sUrl, False
Ws1.Send(stext)
If Ws1.ReadyState = 4 then
TiJiao =BytesToBstr(Ws1.responseBody,"gb2312")
If W s1.status = 200 次に
TiJiao =BytesToBstr(Ws1.responseBody ,"gb2312")
End If
WS1 = Nothingを設定
参考一下代码
sUrl = "http://localhost/UserLogin/"
stext = "{""A"":""1"",""P"":""9630111""," "Email"":""iamm"",""PassWord"":""111111""}"
Set WS1 = Server.CreateObject("MSXML2.XMLHTTP")
WS1.open "POST",sUrl, False
Ws1.Send(stext)
If Ws1.ReadyState = 4 then
TiJiao =BytesToBstr(Ws1.responseBody,"gb2312")
If W s1.status = 200 次に
TiJiao =BytesToBstr(Ws1.responseBody ,"gb2312")
End If
End If
WS1 = Nothingを設定