StringContent Vs FormUrlEncodedContent
问题 I have a URL I want to post a body with parameters to such in the form of data="blahblahblah". However, my "blahblahblah" in this case is a full fledged XML, I simple it down to something like below: <Parent id="1"> <Child id="1"/> </Parent> I can get this to work find with HTTPClient FormUrlEncodedContent find with the following approach. var values = new List<KeyValuePair<string, string>>(); values.Add(new KeyValuePair<string, string>("data", XMLBody)); var content = new