Problem scenario
You are using Lynx, and the prompt to accept cookies is tedious or disruptive to a non-interactive process you want to develop. How do you get Lynx (running on Linux) to automatically accept cookies?
Answer
To configure Lynx to always accept cookies, do these steps:
1. Find lynx.cfg with this command: find / -name lynx.cfg
2. Update lynx.cfg in three places:
a) Replace this stanza
#FORCE_SSL_COOKIES_SECURE:FALSE
with this stanza
FORCE_SSL_COOKIES_SECURE:TRUE
b) Replace this stanza
#SET_COOKIES:TRUE
With this stanza (just no leading comment):
SET_COOKIES:TRUE
c) Replace this stanza
# ACCEPT_ALL_COOKIES:FALSE
with this stanza:
ACCEPT_ALL_COOKIES:TRUE
d) Save the changes. You are done.