[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Problem : Saving Cookie with Lynx



On Thu, Jul 25, 2002 at 02:56:06PM +0800, Anderson Fang wrote:
> 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)
>

Have you tried lynx with the -accept_all_cookies option?

As an aside, if you're doing benchmarking of web stuff, siege is a
really nice tool.  Check out http://www.joedog.org as the version is
woody is on the older side.  

- Chris


-- 
To UNSUBSCRIBE, email to debian-user-request@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: