Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Downloading a File From a Web Server
Message
From
16/06/2004 10:38:12
 
 
To
15/06/2004 18:26:22
Keith Payne
Technical Marketing Solutions
Florida, United States
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00914066
Message ID:
00914254
Views:
11
Thanks again for your response.

You were correct in that we are trying to download an Excel file from a site, and save it on our server.

We're still struggling to get this to work. Here's what we're playing around with:
WebRequest request = WebRequest.Create("http://tonto.eia.doe.gov/oog/ftparea/wogirs/xls/psw18vwall.xls");
request.Timeout = 10000;
WebResponse response = request.GetResponse();
String s = response.ContentType;
Stream str = response.GetResponseStream();
As we step through this, we're seeing the value of str.length equaling an "error". We're new to this class, and we're struggling to find relevant documentation (searched MSDN, UT, others). We're not sure if we're on the right track, and if we are, we don't know where to go! Any thoughts would be appreciated!

Thanks,

David
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform