|
-
Apr 5th, 2013, 08:21 AM
#1
Thread Starter
Frenzied Member
Login to a third party website and download a file
Hello Everybody,
I have subscription to a website where I can login and download files. These files are secured so I cannot download them with a direct link.
Is there any way that I login programmatically and download files from http to my server without any user involvement? They do not offer any API or interface to communicate with.
Thanks.
-
Apr 5th, 2013, 08:40 AM
#2
Re: Login to a third party website and download a file
The links are presumably generated on demand. You could use a WebClient or HttpWebRequest/HttpWebResponse objects to login and get the data that would normally be sent to a web browser and then extract the link from that data. You should start by looking for examples that use those classes to get a feel for how they work and then look at using them in your specific situation.
-
Apr 5th, 2013, 08:53 AM
#3
Thread Starter
Frenzied Member
Re: Login to a third party website and download a file
But I have subscription-based login information not the http login information. Let me try if it will work with WebClient but I think it won't. Right now when I try to fetch say http://www.xyz.com/file.csv it gives me html of the login page instead of the csv file. I think this is the expected behaviour.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|