C# Corner
Tech
News
Videos
Forums
Trainings
Books
Live
More
Interviews
Events
Jobs
Learn
Career
Members
Blogs
Challenges
Certifications
Bounties
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Refer
Rewards
SharpGPT
Premium
Contribute
Article
Blog
Video
Ebook
Interview Question
Register
Login
How To Set User-Agent In Web Client In ASP.NET
WhatsApp
Nikhil Sangani
Aug 07
2016
8.7
k
0
0
using
(WebClient web =
new
WebClient())
{
web.Headers[
"User-Agent"
] =
"Mozilla/4.0 (Compatible; Windows NT 5.1; MSIE 6.0) "
+
" (compatible; MSIE 6.0; Windows NT 5.1; "
+
".NET CLR 1.1.4322; .NET CLR 2.0.50727)"
;
}
Set User-Agent
Web Client
ASP.NET
Up Next
How To Set User-Agent In Web Client In ASP.NET