I would like to ask for advice on using XMLHTTP to submit JSON and how to obtain it on the server side? Not from .Net
phpcn_u1510
phpcn_u1510 2017-05-11 15:47:15
0
1
1380

Please tell me how to use XMLHTTP to submit JSON and how to obtain it on the server side? It’s not .Net

I previously connected a customer to the SMS interface of Montnets Cloud Communication Platform. I could send urlencode json xml but the return is only json or xml. Currently I use json to submit and return json

phpcn_u1510
phpcn_u1510

reply all(1)
phpcn_u1510

参考一下以下代码

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 Ws1.status = 200 Then

                TiJiao =BytesToBstr(Ws1.responseBody,"gb2312")

            End If

        End If

Set WS1 = Nothing

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template