日期:2014-05-17 浏览次数:20748 次
parameters.Add("ts", DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"));
Dictionary<string, string> data = TransformData(parameters);
String param = TransformURL(data);
System.Console.WriteLine(param);
HttpWebRequest request = (System.Net.HttpWebRequest)WebRequest.Create("http://dev.api.meyoung.cn/user/verify?" + param);
request.Method = "post";
HttpWebResponse response = (System.Net.HttpWebResponse)request.GetResponse();
Sub test()
Set ms = CreateObject("MSScriptControl.ScriptControl")
Set mx = CreateObject("Microsoft.XMLHTTP")
ms.Language = "JScript"
mx.Open "GET", "http://dev.api.meyoung.cn/user/verify?", False
mx.send
ss = "a=" & mx.responsetext
ms.AddCode ss
Debug.Print ms.eval("a.success")
Debug.Print ms.eval("a.error.message")
Debug.Print ms.eval("a.error.code")
End Sub