Using cookies with lynx

Posted by XXL on Super User See other posts from Super User or by XXL
Published on 2011-07-24T15:13:29Z Indexed on 2012/03/26 23:32 UTC
Read the original article Hit count: 251

Filed under:
|
|

lynx -cfg=cfg.file $URL

this works with the following contents of the .cfg file:

SET_COOKIES:TRUE
ACCEPT_ALL_COOKIES:TRUE
PERSISTENT_COOKIES:TRUE
COOKIE_FILE:cookie.file

however, this does not:

lynx -cookies=1 -accept_all_cookies=1 -cookie_file=cookie.file $URL

if it's going to be of any help - here's the trace:

parse_arg(arg_name=-cookies=1, mask=1, count=2)
parse_arg lookup(cookies=1)
...skip (mask 1/4)
parse_arg(arg_name=-accept_all_cookies=1, mask=1, count=3)
parse_arg lookup(accept_all_cookies=1)
...skip (mask 1/4)
parse_arg(arg_name=-cookie_file=cookie.file, mask=1, count=4)
parse_arg lookup(cookie_file=cookie.file)
...skip (mask 1/4)
parse_arg(arg_name=$URL, mask=1, count=5)
parse_arg startfile:$URL

obvious question, why? the actual difference, from what i see, is the inability to trigger "PERSISTENT_COOKIES:TRUE" by command-line options in lynx. or, maybe, i have overlooked/misunderstood something?

© Super User or respective owner

Related posts about linux

Related posts about cookies