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?
I have 2 questions on this
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?