Automating file downloads - pasing user names and passwords 
Author Message
 Automating file downloads - pasing user names and passwords

Dear NG users, any help is truly appreciated.

The Dilemma:
My firm requires downloading several files from different sites (financial,
such as Merrill {*filter*}) almost on a daily basis.  For each site, we go to a
specific URL, enter user name and password, get directed to the proper
download page to get the files we need and click on the hyperlink to begin
the download.  Unfortunately, none of these downloads is via FTP, else the
problem would be easier to solve.

The Question:
We want to automate this process using VB.  Can this be done?
How can you pass user names and passwords, navigate to the correct page
afterwards, initiate a download, keep track of its progress, download
success, failure, etc... and save file to disk, all transparent to the user?
Are the solutions all the same if the target web is an ASP or JSP?

PS:  Asking the target sites to make life easier (such as providing FTP
access) is not an option.

If you could just be set in the right directions or provide some code
samples, it would be much, much appreciated.

Jonas Worther
=========================
Give me Babylon 5 or give me death
=========================



Sun, 21 Dec 2003 14:21:42 GMT  
 Automating file downloads - pasing user names and passwords
Jonas -
Take a look at these API's:  InternetOpenURL, InternetReadFile. I don't know
if you can get the file size ahead of time.
HTH
MikeR


Quote:
> Dear NG users, any help is truly appreciated.

> The Dilemma:
> My firm requires downloading several files from different sites
(financial,
> such as Merrill {*filter*}) almost on a daily basis.  For each site, we go to a
> specific URL, enter user name and password, get directed to the proper
> download page to get the files we need and click on the hyperlink to begin
> the download.  Unfortunately, none of these downloads is via FTP, else the
> problem would be easier to solve.

> The Question:
> We want to automate this process using VB.  Can this be done?
> How can you pass user names and passwords, navigate to the correct page
> afterwards, initiate a download, keep track of its progress, download
> success, failure, etc... and save file to disk, all transparent to the
user?
> Are the solutions all the same if the target web is an ASP or JSP?

> PS:  Asking the target sites to make life easier (such as providing FTP
> access) is not an option.

> If you could just be set in the right directions or provide some code
> samples, it would be much, much appreciated.

> Jonas Worther
> =========================
> Give me Babylon 5 or give me death
> =========================



Sun, 21 Dec 2003 20:36:52 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. automate sending user/password to url?

2. automated file download

3. Automating File Download from HTTPS Server

4. How to automate logging into multiple Databases, Searching, then downloading files

5. Automate File Download via Internet Explorer

6. Automating download of graphic file (.JPG) from Internet

7. Authenticating a user name and password

8. Confirm network user name and password

9. How to change NT user name and password?

10. Windows Security - User Name and Password

11. Authenticate an NT user from VB (domain/name/password)

12. User Name and Password

 

 
Powered by phpBB® Forum Software