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

Re: scripting lynx



On Wed, 1 Aug 2001 00:33, Craig Sanders wrote:
> On Wed, Aug 01, 2001 at 12:17:20AM +0200, Russell Coker wrote:
> > I want to script lynx to post data to a web site and save the results.
> > I am using the --post_data option but have been unable to find
> > documentation on the format of data expected on standard input.
> >
> > I have been trying the following:
> > Hour="0_6"
> > Day="2001-08-01"
> > Getlist=List
> > ---
> >
> > Where I want to simulate a click on the button named "Getlist" and put
> > the quoted values in the "Hour" and "Day" variables.
>
> try without the quotes:
>
> cat <<__EOF__ | lynx -dump -post_data .......
> Hour=0_6
> Day=2001-08-01
> Getlist=List
> __EOF__
>
> alternatively, use POST from libwww-perl (LWP).
>
> cat <<__EOF__ | POST -s -d $URL
> Hour=0_6
> Day=2001-08-01
> Getlist=List
> __EOF__

I tried both of them with no difference.

> or use the LWP modules to make yourself a web-bot.

I may have to do that.  Thanks for the suggestions.

-- 
http://www.coker.com.au/bonnie++/     Bonnie++ hard drive benchmark
http://www.coker.com.au/postal/       Postal SMTP/POP benchmark
http://www.coker.com.au/projects.html Projects I am working on
http://www.coker.com.au/~russell/     My home page



Reply to: