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 <[EMAIL PROTECTED]>
Fabricati Diem, PVNC.
-- motto of the Ankh-Morpork City Watch
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]