Can anyone get this to work? All Im getting is the login html being
downloaded.
Would appreciate any help - my heads hurts
Thanks
Gav 4 14234
gavkel,
What do you mean the login html? If you are getting a response at all,
then it indicates that you are not having any problems with the SSL
connection or HTTPS.
Can you provide some sample code?
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com
"gavkel" <ga****@hotmail.comwrote in message
news:11*********************@s13g2000cwa.googlegro ups.com...
Can anyone get this to work? All Im getting is the login html being
downloaded.
Would appreciate any help - my heads hurts
Thanks
Gav
Ok
Uri uri = new
Uri("https://www.scoobydoo.com/downloads/velma_statistics.csv");
WebClient webClient = new WebClient();
CredentialCache mycache = new CredentialCache();
mycache.Add(new Uri("https://www.scoobydoo.com/home.html"),
"Basic", new NetworkCredential("scoobydoobydoo", "Passw0rd"));
webClient.Credentials = mycache;
webClient.DownloadFile(uri, @"c:\gav.txt");
Now, whats happening is Im trying to download velma_statistics.csv (cos
I love her!!) but its over HTTPS. I can see whats happening - when I
copy and paste the contents of the downloaded gav.txt into a html page
in VS, I get the login page that I would need to firstly complete in IE
before successfully downloading my csv file, again manually.
So, any ideas? By the way, I like Daphne too but me and Velma have
always had a thing going on...
Thanks
Ok
Uri uri = new
Uri("https://www.scoobydoo.com/downloads/velma_statistics.csv");
WebClient webClient = new WebClient();
CredentialCache mycache = new CredentialCache();
mycache.Add(new Uri("https://www.scoobydoo.com/home.html"),
"Basic", new NetworkCredential("scoobydoobydoo", "Passw0rd"));
webClient.Credentials = mycache;
webClient.DownloadFile(uri, @"c:\gav.txt");
Now, whats happening is Im trying to download velma_statistics.csv (cos
I love her!!) but its over HTTPS. I can see whats happening - when I
copy and paste the contents of the downloaded gav.txt into a html page
in VS, I get the login page that I would need to firstly complete in IE
before successfully downloading my csv file, again manually.
So, any ideas? By the way, I like Daphne too but me and Velma have
always had a thing going on...
Thanks
Thus wrote gavkel,
Ok
Uri uri = new
Uri("https://www.scoobydoo.com/downloads/velma_statistics.csv");
WebClient webClient = new WebClient();
CredentialCache mycache = new CredentialCache();
mycache.Add(new
Uri("https://www.scoobydoo.com/home.html"),
"Basic", new NetworkCredential("scoobydoobydoo", "Passw0rd"));
webClient.Credentials = mycache;
webClient.DownloadFile(uri, @"c:\gav.txt");
Now, whats happening is Im trying to download velma_statistics.csv
(cos I love her!!) but its over HTTPS. I can see whats happening -
when I copy and paste the contents of the downloaded gav.txt into a
html page in VS, I get the login page that I would need to firstly
complete in IE before successfully downloading my csv file, again
manually.
So, any ideas? By the way, I like Daphne too but me and Velma have
always had a thing going on...
You'll need to use HttpWebRequest and HttpWebResponse to programmtically
log in to the web site and fetch the file. That's a FAQ, so your favorite
search engine should provide you a lot of references to check out.
Cheers,
--
Joerg Jooss ne********@joergjooss.de This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: James Write |
last post by:
Hi,
I am using the webclient.downloadfile() method to download a file from
a remote web server to the local harddrive.
public CopyFile(string sSrcPath, string sDestPath)
{
WebClient oClient...
|
by: A.M-SG |
last post by:
Hi,
I have an aspx page at the web server that provides PDF documents for smart
client applications.
Here is the code in aspx page that defines content type:
Response.ContentType =...
|
by: Cheri Elkin |
last post by:
I recieve the following error when attempting to download a file from our
web server to be placed on our hard drive. Any clues as to why I would get
this error? By the way, the directory already...
|
by: DEWright_CA |
last post by:
Why does WebClient.DownloadFile loose my completed path?
Ok, I have a function in my app then when my button is clicked it checks to
see if the files come from a local drive or a http address....
|
by: peter.rietmann |
last post by:
I have been suddenly having a performance problem downloading images
from one server (productive) to another (productive) using the
following code ..
WebClient webClient = new WebClient();
try...
|
by: Lila Godel |
last post by:
I am having a problem with the download of web pages via the
WebClient.DownloadFile function in the specialized VB.Net 2003 I.E.
plug-in I am designing to speed up the work on my latest project.
...
|
by: David Satz |
last post by:
Hello--I just upgraded to Visual Studio .NET 2005 and suddenly, all my .NET
1.1 applications that accessed Web sites have broken. For example, this code:
WebClient wc = new WebClient();...
|
by: gavkel |
last post by:
Can anyone get this to work? All Im getting is the login html being
downloaded.
Would appreciate any help - my heads hurts
Thanks
Gav
|
by: =?Utf-8?B?UnVpIE9saXZlaXJh?= |
last post by:
WebClient.DownloadFile
I am using the WebClient.DownloadFile function to download a file from
server to a local client.
When I execute the below code, file is created in server and not in...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
| |