Is it possible to set the User-Agent string when making an HTTP request with XmlTextReader? If so, how might I go about doing that?
I am using VB.NET with the .NET 2.0 runtime, but can read your C# suggestions just fine.
Thank you for your time.
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.
You need to use the
WebRequestorWebClientclasses to manually download the content; they allow you to set headers.EDIT: For example: