[Top][All Lists]

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

Re: [Bug-wget] file download using Wget

From: Ángel González
Subject: Re: [Bug-wget] file download using Wget
Date: Sat, 31 Mar 2012 20:02:28 +0200
User-agent: Thunderbird

On 31/03/12 04:34, Bidwell, Eugene x23787 wrote:
> Hi I have a need to download a text file from a site 
> (http://www.theocc.com/webapps/position-limits) which uses a button that 
> activates a javascript routine to generate a dialog box for downloading a 
> file to my pc using http.  Will the Wget utility allow me to retrieve that 
> data from a program?
> Thanks
The dialog box is produced by your browser, not by that javascript. The
javascript is used just to request the files using post instead of get.
Either they don't know how to make their app support a request through
GET, and that javascript kludge is the only way they thought of, or they
are using it to keep bots out, or perhaps avoid hotlinking.

You can instruct wget to download one of those files by using the command:
> wget --post-data ""
> "http://www.theocc.com/webapps/position-limits?fileName=20120331&positionLimit=CURRENT_POSITION_LIMIT_";
(adapt the url parameters as needed)

Best regards

reply via email to

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