I am trying to set a content type of this:
System.FormatException: 'The format of value 'multipart/form-data;boundary=ce4da8a9-0e0d-4ba6-9f00-e7f3b002a717' is invalid.'
when executing this
HttpRequestMessage request = new HttpRequestMessage(HttpMethod.Post, uri)
{
Content = new StringContent(postData, Encoding.UTF8, content_type) // CONTENT-TYPE header
};
but according to this
https://learn.microsoft.com/en-us/skype-sdk/ucwa/batchingrequests https://ucwa.skype.com/documentation/Resources-batch-3 https://ucwa.skype.com/documentation/ProgrammingConcepts-Batch
All the resources say to use the format that I have. And it doesn't complain about this in Postman too. Is there a way I can force this content type in the StringContent
in c#?
There is an answer here
How do I send arbitrary JSON data, with a custom header, to a REST server?
but I'm not sure how to implement this.