Re: Restfull API Post
Sorry for the late response, please try this code, create a new HttpRequestMessage object to set the content-type header and the xml content:using (var httpClient = new HttpClient()) { var request =...
View ArticleRe: Restfull API Post
How do I add content type header to the following code?using (var client = new HttpClient()){ client.BaseAddress = new Uri(ApiUri); client.DefaultRequestHeaders.Accept.Clear();...
View ArticleRe: Restfull API Post
If this doesn't work, I recommend you firstly use Fiddler or some other tools to inspect the request content, make sure you've post the right XML to the server. Try to add content type header to tell...
View ArticleRe: Restfull API Post
Thanks, but HtmlEncode(String) has no effect, the data shows up the same on the receiving end unless the receiving end is on IIS, if it's on Glassfish or any other server all of the less then and...
View ArticleRe: Restfull API Post
Hi czupet,It seems that the web server escaped the XML <> tags in case of unsafe string content. Please try to use HtmlEncode to encode the XML content firstly, then send to the server....
View ArticleRestfull API Post
ASP.NET 5.0 and Visual Studio 2015. I am trying to POST a XML string which is on Windows to RESTFULL API which runs on Linux.When I POST the same string to a Windows IIS everything works, but when I...
View Article
More Pages to Explore .....