The cookies file saved by wget seem to be of the wrong format.  More
specifically, the PATH field does not have a leading slash ('/').  For example,
if I invoke wget as

wget -d --save-cookies cookies.txt 'http://localhost/~user/index.php?m=1

where index.php just saves the cookie with name 'm', the contents of
cookies.txt is

--------------------------------------------------
# HTTP cookie file.
# Generated by Wget on 2005-02-02 14:31:03.
# Edit at your own risk.

.localhost:80   TRUE    %7Euser/index.php       FALSE   1138919463      m       
1
--------------------------------------------------

I think the '%7Euser/index.php' should be '/%7Euser/index.php'.  I haven't read
the Netscape cookie specification in any detail, but by scanning through the
cookie file saved by the Firefox browser, I find that all the entries in that
file have this leading slash.

Best Regards,
Hsiu-Khuern Tang.

Reply via email to