Http request used to download binary files?

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
User avatar
Dorian (MJT support)
Automation Wizard
Posts: 1348
Joined: Sun Nov 03, 2002 3:19 am
Contact:

Http request used to download binary files?

Post by Dorian (MJT support) » Sun Jan 25, 2004 7:33 am

Can this be done, and if so how would I go about it?

I have a large amount of rars that need to be downloaded from my site on a regular basis, and would like to schedule them to download one after the other, rather than clicking on them manually until they are all done.

Lumumba

Post by Lumumba » Sun Jan 25, 2004 11:06 am

If it's your (web)site, why not do[wnload]ing it with FTP?
something equal ...

User avatar
Dorian (MJT support)
Automation Wizard
Posts: 1348
Joined: Sun Nov 03, 2002 3:19 am
Contact:

Post by Dorian (MJT support) » Sun Jan 25, 2004 8:53 pm

Because it's not me who will be downloading them, and I don't trust the person enough to give them an ftp account

armsys
Automation Wizard
Posts: 1108
Joined: Wed Dec 04, 2002 10:28 am
Location: Hong Kong

Post by armsys » Mon Jan 26, 2004 1:47 am

Can you compile your script which handles the secretive mission?

User avatar
Dorian (MJT support)
Automation Wizard
Posts: 1348
Joined: Sun Nov 03, 2002 3:19 am
Contact:

Post by Dorian (MJT support) » Mon Jan 26, 2004 3:20 am

I suppose I could write it so the ftp username and password run from an exe, then read some kind of ini file telling it which files to download. Would be much easier it I can just get a webpage, and tell it to download every binary on that page though.... but if we can't use httprequest to get a binary file I'll have to go about it the other way instead.

thanks for your help guys.

A nice

Post by A nice » Mon Jan 26, 2004 3:48 pm

With GMX (a German FreeMailer) you'll get a "MediaCenter" bundled to the "FreeMail Account". It provides 10 MB which can be used for files/images/... allowed to be shared with others. It's up to you to restrict the download area (you can send a mail with the login details to a specific recipient and the account can be set to a maximum available timeperiod) or not.

If you decide to pay a l'ill more then nothing, upgrade it to 100MB ...

http://www.gmx.de

I expect somewhere on this planet, someone offers an equivalent !

User avatar
Captive
Macro Veteran
Posts: 213
Joined: Sun Oct 20, 2002 8:37 pm
Location: Colorado, USA

Post by Captive » Fri Jan 30, 2004 9:48 am

Use HTTPRequest to fetch the index.html, and then read that file line by line checking for any sections with HREF in (or some other method to get your list).

Then again use HTTPRequest to fetch each file.

The trick is going to be analyzing the index.html/index.cgi file.

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts