bug-wget
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-wget] Downloading from us.ua hoster


From: Tim Ruehsen
Subject: Re: [Bug-wget] Downloading from us.ua hoster
Date: Thu, 3 May 2012 10:48:46 +0200
User-agent: KMail/1.13.7 (Linux/3.2.0-2-amd64; KDE/4.7.4; x86_64; ; )

Am Wednesday 02 May 2012 schrieb ptrk mj:
> Greeting everyone,
> 
> I would like to download a file linked from http://us.ua/792900/ page.
> The url rests inside <form> element:
> 
> <form action="http://u4-4.us.ua/download/"; method="post" id="fDownload">
>    <input type="hidden" name="server" value="">
>    <input type="hidden" name="file" value="792900">
>    <input type="submit" id="sdButton" value="Скачать">
> </form>
> 
> To retrieve it I could use:
> wget --post-data=file=792900 http://u4-4.us.ua/download/
> 
> and it works but is troublesome because it requires a manual search
> inside page source for a <form> element and it's contents. Isn't it
> possible to call wget like this:
> 
> wget {options}... http://us.ua/792900/
> 
> and make it do the search for me?

It could be possible with an option like
--autosubmit <id>[=list of values to be set]

In your case the list of values can be left away:
--autosubmit fDownload

It would require HTML/FORM parsing, which - i assume - partially exists in 
wget. But then, more and more web pages become javascript generated within the 
client... wget would need a javascript interpreter to work as a robot 
(simulation of a user):

1. load that page
2. simulate a click on item a
3. simulate a click on item b
...
x. submit form <id> with the following values


Why not report it as a wishlist bug ?


Mit freundlichem Gruß

     Tim Rühsen



reply via email to

[Prev in Thread] Current Thread [Next in Thread]