Quantcast
Channel: Restfull API Post
Browsing latest articles
Browse All 7 View Live

Re: Restfull API Post

Thank you for you help

View Article



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 Article

Re: 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 Article

Re: 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 Article

Re: 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 Article


Re: 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 Article

Restfull 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
Browsing latest articles
Browse All 7 View Live




Latest Images