Here is an example:

lynx -dump -auth=user:pass -cookie_save_file=foo -post_data
http://foo.ca/cgi-bin/mail.pl < my_data > lynx.save

which does:

-dump: exit after the one operation
-auth: provide colon-separated username and password
-cookie_save_file: specifies file in which cookies get saved; file will be
populated with existing cookies from location specified in lynx.cfg so you
might want to change that if you just need the one from the single transaction
-post_data: file location read as STDIN containing name=value&foo=bar strings
or whatever you want to POST

follow this construction with the URL, and redirect STDIN and optionally
STDOUT.

__Stef

(tested on)...
http://caunter.ca/contact.html

On Fri, 14 May 2004 [EMAIL PROTECTED] wrote:

> please send questions to the Lynx mailing-list,
> to which i have forwarded this.
>
> > I noticed the option -post_data
> > which looks like it will be really helpful to a project of mine.
> > I'm trying to submit a login and password to a form
> > and I'd like to do it from the command line and use the resultant cookie.
> > However, I don't quite understand the usage.  Could you elaborate please?
>
> --
> ========================,,============================================
> SUPPORT     ___________//___,  Philip Webb : [EMAIL PROTECTED]
> ELECTRIC   /] [] [] [] [] []|  Centre for Urban & Community Studies
> TRANSIT    `-O----------O---'  University of Toronto
>
>
> _______________________________________________
> Lynx-dev mailing list
> [EMAIL PROTECTED]
> http://mail.gnu.org/mailman/listinfo/lynx-dev
>



_______________________________________________
Lynx-dev mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/lynx-dev

Reply via email to