bug-wget
[Top][All Lists]
Advanced

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

Re: [Bug-wget] Info wget


From: Tim Ruehsen
Subject: Re: [Bug-wget] Info wget
Date: Thu, 27 Oct 2016 10:00:32 +0200
User-agent: KMail/5.2.3 (Linux/4.7.0-1-amd64; KDE/5.27.0; x86_64; ; )

Hi,

you could use the developer tools from Firefox to see what exactly Firefox 
sends when it answers with the expected content.

With that it should be pretty easy to tune your .bat file. Use -d with wget to 
see what wget sends.

Regards, Tim

On Thursday, October 27, 2016 3:23:20 AM CEST Daniele Dinaro wrote:
> Hello,
> I have a question about using wget. Now I am days that I can not all in
> vain, my aim is to download a file from a website that is generated through
> a form.
> 
> For example the site is this: http://www.armaholic.com/page.php?id=30431
> 
> To the bottom of the page there is the link for download, is a simple
> "submit" button belonging to the form that will attract directed, via the
> "action" this address: "
> http://www.armaholic.net/downloader.php?download_file=chili/addons/units/BTC
> -Militia-version-1.1.7z "
> 
> the form is this:
> > <form method="post" action="
> > http://www.armaholic.net/downloader.php?download_file=chili/addons/units/B
> > TC-Militia-version-1.1.7z ">
> > <div style="display:inline;margin:0;padding:0">
> > <input type="hidden" name="x" value="3910CD8F"></div>
> > <div class="hide-s">
> > <label for="super">What is two plus two?</label>
> > <input name="super" type="text" size="4" id="super"></div>
> > <input type="hidden" name="captcha" value="I am a human!">
> > <input type="submit" name="submit" value="Click to download =BTC=
> > Militia">
> > </form>
> 
> I have write this command for my .bat file
> 
> > %WGET%  --http-user=Mozilla/5.0 --save-cookies=cookies.txt
> > --keep-session-cookies --header="Content-Type:
> > application/x-www-form-urlencoded" -c --no-check-certificate
> > --post-data=--post-data="captcha=I am a human^!&x=3910CD8F" -c
> > http://www.armaholic.net/downloader.php?download_file=chili/addons/units/B
> > TC-Militia-version-1.1.7z
> I hope you manage to help me, I have not slept in days.
> 
> Thank you

Attachment: signature.asc
Description: This is a digitally signed message part.


reply via email to

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