I have a problem getting and requesting XML data from http request

I have 2 questions about this

  • My code always seems to hit a 401 forbidden error when I try to post data to an http link.
  • What is the best way to discard and display XML data from a stream that I should receive?
-1


a source to share


1 answer


My guess regarding your first question: your "401 Forbidden" is actually "401 Unauthorized" ("Forbidden" will be fatal and has a 403 code). This 401 response is a normal part of the NTLM challenge / response authentication mechanism (Windows). Your request must have the correct credentials set in order for it to authorize and then this error goes away.



As for your second question - It depends. What kind of XML will you return? Will the raw XML string be displayed?

0


a source







All Articles