I want to download a file from a website directory.
I can manually go to the page and see a list of the files.
If I click on the file I am prompted to Open/Save the file. I want to save.
OR If I copy the link for the file to a new browser tab, I am prompted to Save
Both of these work, but I want to do this discretely like HTTPRequest. method.
But the HTTPRequest does not give me the file...
I tried FTPGetFile, but cannot seem to grab the file. I left usrname and password blank, since none is required, it is a public web page.
I have used http://www.websitename.com and ftpwebsitename.com for hostname, used port 80 vs. 21, but still having no success.
Suggestions?
Download a file from web site file listing
Moderators: JRL, Dorian (MJT support)
Download a file from web site file listing
Last edited by obfusc88 on Tue Jun 29, 2010 3:03 am, edited 1 time in total.
I know that HTTP will not work, just mentioned it as an example of a method similar to how I would like to download the file.
Basically using a web site similar to an FTP site, but having users just use their browser vs. ftp software. Not my design, not my site to make public, only to access for downloads and uploads.
Cannot provide link now, although it is public, it is only known to particular users who have been given the path. There are files on the site that have confidential material. (I know, big security issues, again, not my idea). I will check around to see if I can find a similar site or have them create one for test purposes
OK...just found a random link: http://typelogic.com/gallery/modules/sl ... _MESSAGES/
The file "modules_slideshow.mo" is an example.
How to download this file in background without opening browser?
Basically using a web site similar to an FTP site, but having users just use their browser vs. ftp software. Not my design, not my site to make public, only to access for downloads and uploads.
Cannot provide link now, although it is public, it is only known to particular users who have been given the path. There are files on the site that have confidential material. (I know, big security issues, again, not my idea). I will check around to see if I can find a similar site or have them create one for test purposes
OK...just found a random link: http://typelogic.com/gallery/modules/sl ... _MESSAGES/
The file "modules_slideshow.mo" is an example.
How to download this file in background without opening browser?
- Marcus Tettmar
- Site Admin
- Posts: 7395
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
- Contact:
Not sure why you say HTTP will not work. The link to this file IS an HTTP URL. So this works:
This downloads the file to the same folder as the script.
Code: Select all
Let>url=http://typelogic.com/gallery/modules/slideshow/locale/de_DE/LC_MESSAGES/modules_slideshow.mo
HTTPRequest>url,%SCRIPT_DIR%\modules_slideshow.mo,GET,,res
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?