如何获取响应标头中的位置使用Windows Phone中的HttpResponseMessage

时间:2015-11-29 15:37:35

标签: httprequest httpclient httpresponse request-headers response-headers

我想在响应标题中获取位置但我无法在响应中看到此信息。怎么弄这个。请帮帮我。

 var client = new HttpClient(new HttpClientHandler { AllowAutoRedirect = false });
    FormUrlEncodedContent postData = new FormUrlEncodedContent(new[] {
                            new KeyValuePair<string,string>("background","1"),
                            new KeyValuePair<string,string>("line1","Content1"),
                            new KeyValuePair<string,string>("line2","Content2")
                        });
                    HttpResponseMessage response = await client.PostAsync("URL", postData);
                    string rp = await response.Content.ReadAsStringAsync();

0 个答案:

没有答案