- Nov
- 76
- 1
Hi all.
I'm writing BTMs to download new versions of specific software automatically by reading the repository content directly, then feeding the latest release to WGET.
If target is a real FTP back-end (URI = FTP or FTPS:), then no problem. I can do the following and easily parse the result :
Works a treat.
But if when the URI is HTTP or HTTPS, then I get nothing. Regardless whether the URL contains only dirs or dirs + files :
The same URL entered in my browser gives me a list of almost 1000 lines.
So for now I do TYPE <url>, which downloads the page's HTML code, which I then have to comb through for the latest release.
Pain in the ass!
I've tried with exotic variations such as "ftp://...:80" and "https://...:21" but found no valid work-around.
Isn't there a way to get the same result with DIR /B http(s)://... as with DIR /B ftp(s)://... ?
I hope so.
Later.
Mark/x13
I'm writing BTMs to download new versions of specific software automatically by reading the repository content directly, then feeding the latest release to WGET.
If target is a real FTP back-end (URI = FTP or FTPS:), then no problem. I can do the following and easily parse the result :
DIR /B ftp://ftp.symantec.com/public/english_us_canada/antivirus_definitions/symantec_antivirus_corp/*core3sdsv5i64.exe
20171129-002-core3sdsv5i64.exe
20171129-016-core3sdsv5i64.exe
...
20171221-022-core3sdsv5i64.exe
20171222-003-core3sdsv5i64.exe
Works a treat.
But if when the URI is HTTP or HTTPS, then I get nothing. Regardless whether the URL contains only dirs or dirs + files :
DIR https://ftp.mozilla.org/pub/firefox/releases/*
Directory of https://ftp.mozilla.org/pub/firefox/releases/*
1 01 1601 0.00 0
0 bytes in 1 file and 0 dirs
Total for: https://ftp.mozilla.org/pub/firefox/releases/*
0 bytes in 1 file and 0 dirs
The same URL entered in my browser gives me a list of almost 1000 lines.
So for now I do TYPE <url>, which downloads the page's HTML code, which I then have to comb through for the latest release.
Pain in the ass!
I've tried with exotic variations such as "ftp://...:80" and "https://...:21" but found no valid work-around.
Isn't there a way to get the same result with DIR /B http(s)://... as with DIR /B ftp(s)://... ?
I hope so.
Later.
Mark/x13
Last edited: