On Mon, Oct 23, 2000 at 12:48:09PM +1000, George Vieira wrote:
> I have a page which I have saved to a html file and modified locally but
> require to submit it.
> I have seen the -post_data options but can't figure it out from the help
> files.
I don't really understand what you are trying to do here, but I'm not
sure that -post_data is what you want.
> any body have an example or somethign?
The time when you want -post_data is when you want to submit data to a
form using the POST method (so the data is in the body of the HTTP
request, rather than in the URL, as it would be when using the GET
method).
By way of example, suppose you wanted to submit data to a form that
takes parameters 'Name', 'Address' and 'Postcode' using POST. You could
do it this way...
lynx -post_data http://my.form.com
Name=Freddy
Address=60%20Smith%20Road,%20Sydney
Postcode=2000
^D
This will then submit the data to my.form.com and print the returned
page onto stdout.
Clear as mud?
Malcolm
--
Malcolm Tredinnick email: [EMAIL PROTECTED]
CommSecure Pty Ltd
PGP signature