摘要: var response = await httpClient.PostAsync(endpoint, new FormUrlEncodedContent(parameters)); var result = await response.Content.ReadAsStreamAsync(); var reader = new StreamReader(result); var str = reader.ReadToEnd(); //if (response.Content != ... 阅读全文
posted @ 2013-11-19 06:40 MinieGoGo 阅读(222) 评论(0) 推荐(0) 编辑
摘要: public void GetValueFromRequest(string postData) { var request = (HttpWebRequest) WebRequest.CreateHttp("http://login.test.geoop.com/oauth2/token"); byte[] requestBytes = Encoding.UTF8.GetBytes( postData); request.Metho... 阅读全文
posted @ 2013-11-19 04:58 MinieGoGo 阅读(387) 评论(0) 推荐(0) 编辑