Daniel Carl cdlscpmv <cdlsc...@gmail.com> wrote: > I haven't tested it yet since I could not find any site that would require > Basic-Authentication for downloading files, but you can do it with curl or > wget as follows: > > wget --http-user=user --http-password=password $URL > curl --user 'user:password' -O $URL > > These programs can prompt user for a password or use the .netrc file, so you > don't need to specify password on command line.
Thank you for the hint. Seems I always skipped the section in man page that mentions that the netrc is read. I don't like to put the username and password as option to the command, because they will appear in the process list. > > 1. We could start the download in a new terminal window, so the script can > > ask the user for the credentials if those are required. This could fill > > the > > workspace with some ugly terminal windows. > > Opening a new terminal window is the most simple solution, because you > can see progress bar, speed, error messages, etc. Also you can type your > password if an external downloader will prompt you for it (in case of > Basic-Authentication). > > ... > > The downside of this approach is obvious. If you need to download > multiple files from one page, what vimb should do? Print stdout for each > downloading file? It may become a mess. You are right, multiple downloads started by hinting like `g;s` will disturb the user from selecting the links/files to download if there opens new terminals. > I think opening a new terminal window will help to avoid unneeded complexity > inside vimb. > > > I'm not sure how often a user would download something from a page that uses > > Basic-Authentication. The surf browser have the same problem, but nobody > > seems > > to be annoyed about this. So maybe this issue is it worth to bloat vimb and > > to > > spent to much time to solve it. > > I haven't found such pages today as well. Nevertheless, I think that vimb > should be > a full featured web browser and be able to do things that are common for all > web > browsers. Otherwise, it will not be able to provide a good browsing > experience. I found this http://www.euronet.nl/~arnow/htpasswd/examples/by-password/.htaccess that is accessible only to user 'fido' with password 'bones'. The use case to test is, open the page and authenticate to it and than run `:s` (with the external download tool). The downloaded file will contain the message that you are not authenticated. > Maybe you should wait a little bit before we find a way to handle > "Basic-Authentication pages". By the way, if you know such pages, let me > know. In fact not only Basic-Authentication is affected, but also NTLM-Authetication or better, every authentication that is not cookie based if I understand http right. By now I conceive suspicion that we think something wrong or don't see the simple and efficient solution to handle downloads for restricted pages, to resume aborted downloads later, to start a user defined program for the finished downloads without to overbloat vimb. Daniel ------------------------------------------------------------------------------ Flow-based real-time traffic analytics software. Cisco certified tool. Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer Customize your own dashboards, set traffic alerts and generate reports. Network behavioral analysis & security monitoring. All-in-one tool. http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk _______________________________________________ vimb-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/vimb-users