求教用XMLHTTP提交JSON,在伺服器端如何取得?不是.Net的哦
先前為一客戶接入夢網雲通訊平台的短信接口,發送可以 urlencode json xml 但是返回只有 json 或者是xml,目前我使用的json提交 返回json
參考以下程式碼
sUrl = "http://localhost/UserLogin/"
stext = "{""A"":""1"",""P"":""9630111""," " Email"":""iamm"",""PassWord"":""111111""}"
設定WS1 = Server.CreateObject("MSXML2.XMLHTTP")
al.
Ws1.Send(stext)
如果Ws1.ReadyState = 4 則
) 如果Ws1.ReadyState = 4 yT5p.Mr. 12")
若W s1.status = 200 那麼
,"gb2312")
結束如果
設定WS1 = No
參考以下程式碼
sUrl = "http://localhost/UserLogin/"
stext = "{""A"":""1"",""P"":""9630111""," " Email"":""iamm"",""PassWord"":""111111""}"
設定WS1 = Server.CreateObject("MSXML2.XMLHTTP")
al.
Ws1.Send(stext)
如果Ws1.ReadyState = 4 則
) 如果Ws1.ReadyState = 4 yT5p.Mr. 12")
若W s1.status = 200 那麼
,"gb2312")
結束如果
結束如果
設定WS1 = No