I'm using the WebClient to post string to a WebApiController using UploadString.
The string Im uploading is an Xml file containing a DateTime in the following format: "yyyy-mm-ddThh:mm:ss.000+zzz".
The problem I encounter is that the string is sent ok but the endpoint ApiController gets the string without the "+" character in the DateTime. It is replaced with " ".
How can I format the Xml string so that I will get the "+" character in the ApiController?
I tried
HttpUtility.UrlEncode(xmlString)
but it didn't do anything.
Thanks a lot,
Rotem