|
HttpHelper http = new HttpHelper();
HttpItem item2 = new HttpItem()
{
URL = "https://iappapi.investing.com/get_screen.php?pair_ID=8839&screen_ID=24&time_utc_offset=28800&skinID=1&lang_ID=6&pair_IDs=8839",
//URL = "http://hk.yahoo.com",
Method = "get",//URL 可选项 默认为Get
Host = "iappapi.investing.com",
UserAgent = "Investing.com/0.0.3 CFNetwork/897.15 Darwin/17.5.0",
ContentType = "application/json",//返回类型 可选项有默认值
};
item2.Header.Add("ccode_time", "1527075849.27196");
item2.Header.Add("x-os", "ios");
item2.Header.Add("x-app-var", "60");
item2.Header.Add("x-uuid", "4E0ED0CB-9632-4C6F-9280-E09BFE998871");
item2.Header.Add("ccode", "HK");
item2.Header.Add("x-meta", "12");
item2.Header.Add("x-app-var", "60");
//请求的返回值对象
HttpResult result2 = http.GetHtml(item2);
//获取请请求的Html
string html2 = result2.Html;
Console.WriteLine(html2);
求解,我缺了哪些部份?
|
|