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

Re: scripting lynx



As an alternative:
cURL can do nearly everything you
can do with a browser (and a lot more)
curl -d "datatopost"
http://curl.haxx.se/
It packaged for Debian as well.

Cheers, Marcel


Craig Sanders <cas@taz.net.au> 1 Aug 2001, at 8:33:

> 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__
>
> or use the LWP modules to make yourself a web-bot.
>
> craig
>
> --
> craig sanders <cas@taz.net.au>
>
> Fabricati Diem, PVNC.
>  -- motto of the Ankh-Morpork City Watch
>
>
> --
> To UNSUBSCRIBE, email to debian-isp-request@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact
> listmaster@lists.debian.org
>


--
   __
 .´  `.
 : :' !  Enjoy
 `. `´  Debian/GNU Linux
   `-



Reply to: