I have 2 questions on this
- My code always seems to hit a 401 forbidden error when I try to post data to a http link
- What is the best way to pull back and display xml data from the stream that I should be getting back?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
My guess regarding your first question: Your “401 Forbidden” is actually a “401 Unauthorized” (“Forbidden” would be a fatal error, and it has code 403). This 401 response is a normal part of the NTLM (Windows-integrated) challenge/response authentication mechanism. Your request must have correct credentials attached so it can authorize itself, then this error will go away.
Regarding your second question — It depends. What XML do you get back? Will displaying the raw XML string be useful?