调用浏览器跳转到网页
Windows.System.Launcher.LaunchUriAsync(new Uri("http://www.baidu.com/"));网上获取数据
HttpClient httpclient = new HttpClient();
HttpResponseMessage respose = await httpclient.GetAsync(Url);
m = await respose.Content.ReadAsStringAsync();
post 数据
List<KeyValuePair<string, string>> listKey = new List<KeyValuePair<string, string>>();
listKey.Add(new KeyValuePair<string, string>("LastDateUpdate", Date));
HttpContent content = new FormUrlEncodedContent(listKey);
HttpResponseMessage respose = await httpclient.PostAsync(Url, content);
m = await respose.Content.ReadAsStringAsync();

1130

被折叠的 条评论
为什么被折叠?



