0
我正在使用WebClient使用查询字符串发出POST请求,但我看不到原始字符串。这是我有:在C中获取WebClient的原始查询字符串#
WebClient TheWebClient = new WebClient();
TheWebClient.QueryString.Add("Param1", "1234");
TheWebClient.QueryString.Add("Param2", "4567");
TheWebClient.QueryString.Add("Param3", "4539");
var TheResponse = TheWebClient.UploadValues("https://www.example.com/posturl", "POST", TheWebClient.QueryString);
string TheResponseString = TheWebClient.Encoding.GetString(TheResponse);
//problem is that this only shows the keys
var RawQueryString = TheWebClient.QueryString;
我怎样才能看到实际的原始查询字符串?
感谢
明白了,弄糊涂了一个GET请求。 – frenchie