Hi!

On 02/27, Daniel Carl wrote:
> But there is an issue if we try to download some files that require
> authentication (Basic-Autentication) that is handles by webkit and worked with
> the webkit downloader. This authentication does not use the cookie file,
> instead the credentials are given with each request. A possible solution could
> be to give the credentials to the script too (they will be visible in
> process list). But I'm not sure if we can get the credentials out of webkit
> easily, and we don't know if the URL to be downloaded requires these
> authentication.

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.
        
> 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).

If you don't want to open a new terminal window and want keep all things
inside vimb, there is also a way but it will be hard to implement.
For example, I want to know how much of a file was downloaded and what
is the current download speed. Of course, we can invent a new variable 
which can contain such information. An external downloader could fill 
this variable with required information and vimb could print it in the
input bar and update it every second. Something like this could be achieved 
if vimb would allow stdout for an external downloader and update it every 
second.

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.

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.

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.

Good luck!

------------------------------------------------------------------------------
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

Reply via email to