HttpClient http = new HttpClient();
HttpQueryString qs = new HttpQueryString();
qs.Add("code", "xxx");
qs.Add("apikey", "xxx");
Uri u = new Uri("http://xxx");
HttpResponseMessage rm = http.Get(u,qs);
rm.EnsureStatusIsSuccessful();
string s = rm.Content.ReadAsString();
No comments:
Post a Comment