Clear, but my data is in the HTML file locally... can it still be done this
way or does it have to be passed in via stdin?
thanks,
George Vieira
Network Administrator
http://www.citadelcomputer.com.au
PGP Fingerprint : 43DC 92AC 1A82 27B2 E97B 52F1 B60F 301A 38A9 A10C
PGP KeyID: 0x38A9A10C
-----Original Message-----
From: Malcolm Tredinnick [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 23, 2000 12:02 PM
To: Sydney Linux Users Group
Subject: Re: [SLUG] lynx and submitting a page from a command line.
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
--
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://slug.org.au/lists/listinfo/slug