Webclient Timeout?

  • Thread starter Thread starter Patrick Dugan
  • Start date Start date
P

Patrick Dugan

I am using the webclient (system.net) to download a file. I haven't found a
"timeout" interval setting so I'm guessing there must be some other way to
limit it. Is there anyway to limit the amount of time spent attempting to
get the file? Any examples on the internet someplace?
 
Patrick Dugan said:
I am using the webclient (system.net) to download a file. I haven't found a
"timeout" interval setting so I'm guessing there must be some other way to
limit it. Is there anyway to limit the amount of time spent attempting to
get the file? Any examples on the internet someplace?

System.Net.HttpWebRequest has a Timeout property.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top