[C#] 纯文本查看 复制代码 Console.WriteLine(DateTime.Now.ToString());
HttpHelper http = new HttpHelper();
HttpItem item = new HttpItem()
{
URL = "http://api.api68.com/pks/getPksHistoryList.do?lotCode=10037",
Method = "GET",
ContentType = "application/json",
};
HttpResult result = http.GetHtml(item);
string myJson = result.Html;
Console.WriteLine(DateTime.Now.ToString());
用httphelper获取http://api.api68.com/pks/getPksHistoryList.do?lotCode=10037的json数据,测试了一下时间起码40秒,但是用浏览器直接打开只要6秒左右。请问是我代码有问题还是?
|