SyntaxFix
Write A Post
Hire A Developer
Questions
You need to use HttpWebRequest rather than WebClient as you can't set the timeout on WebClient without extending it (even though it uses the HttpWebRequest). Using the HttpWebRequest instead will allow you to set the timeout.
HttpWebRequest
WebClient