C# Windows phone 8.1 POST x-www-form-urlencoded不工作

C# Windows phone 8.1 POST x-www-form-urlencoded不工作,c#,post,windows-phone-8.1,windows-phone,http-post,C#,Post,Windows Phone 8.1,Windows Phone,Http Post,我正在尝试用C#发送POST x-www-form-urlencoded请求付款方式支付api 这是我的代码: HttpRequestMessage request = new HttpRequestMessage(HttpMethod.Post, new Uri(url)); List<KeyValuePair<string, string>> bla = new List<KeyValuePair<string, string>>(); bla

我正在尝试用C#发送POST x-www-form-urlencoded请求付款方式支付api

这是我的代码:

HttpRequestMessage request = new HttpRequestMessage(HttpMethod.Post, new Uri(url));
List<KeyValuePair<string, string>> bla = new List<KeyValuePair<string, string>>();
bla.Add(new KeyValuePair<string, string>("id_number","2000"));
request.Content = new HttpStringContent(new HttpFormUrlEncodedContent(bla).ToString(),Windows.Storage.Streams.UnicodeEncoding.Utf8, "application/x-www-form-urlencoded");
有人能知道我遗漏了什么吗?

使用NavigateToString(“”),在其中添加html表单并发布:D

POST /services/test HTTP/1.1
Host: example.tk
Cache-Control: no-cache
Postman-Token: c67b2ee3-6e25-7ecc-61f5-38282c23sds7d
Content-Type: application/x-www-form-urlencoded

id_number=2000