Problem : Saving Cookie with Lynx
Hello all,
Let's suppose I have two pages : Main.php and Auth.php
While I try to access Main.php, it will check if I got a cookie for authentication first. If yes, I can access the rest of the page. If not, it will redirect me to Auth.php for some identity checks, give me a valid cookie, and then redirect me back to Main.php.
Now I plan to use lynx with some shell scripts as a benchmark tool for Main.php, therefore I need to bypass the authentication step. I think I can access Main.php for the first time, save the cookie, and quit. After I have a cookie file, I can use this file as an argument of lynx and directly access Main.php without any redirection.
While I execute this :
lynx http://foo.bar.com/Main.php -cookie_save_file=mycookie
my "mycookie" file is still empty after I leave lynx. After I add -trace and check the content of Lynx.trace, the last line says :
"LYStoreCookies: 1027578613 cf 0 not stored - no expiration time"
Does this means lynx cannot store a cookie that does not provide expiration time ? (I think "no expiration time" means the cookie will be kicked away after the session ends. Is that right ?) If not, how can I use lynx to solve my problem ? If yes, is there any method available ?
OS : Debian Woody
kernel : 2.4.18
filesystem : EXT3
lynx version: 2.8.4re1.1 (17 Jul 2001)
Thanks,
Anderson
--
------------------------------------------------------------------------------
Anderson-1.0 is now available!
Email : Anderson.Fang@ezplay.tv
ICQ : 161984362
PGP Key : http://www.ezplay.tv/~anderson.fang/AndersonEZplay.gpg
------------------------------------------------------------------------------
--
To UNSUBSCRIBE, email to debian-user-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Reply to: