Are there bugs or something in the Webclient class?

B

Brent

Downloading this URL on my machine typically take a second or two when
using a web browser (e.g., Firefox):

http://www.sec.gov/Archives/edgar/data/1001540/0000201196-98-000001.txt

Downloading the same URL with the following code takes a minute or more
on the same machine:

public void downloadFile()
{
string url =
"http://www.sec.gov/Archives/edgar/data/1001540/0000201196-98-000001.txt";

string filename = @"testfile1.txt";
WebClient Client = new WebClient ();
Client.DownloadFile(url, filename);
return filename;
}

I'm absolutely confused why it just ain't workin' ...

Any thoughts?

--BRent
 

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

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,819
Latest member
masterdaster

Latest Threads

Top