janodvarko / firecookie

Automatically exported from code.google.com/p/firecookie
Other
0 stars 3 forks source link

Export cookies in "standard" (Netscape) format #106

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
When exporting cookies, the file written is not a standard cookie file that can 
be used in wget/curl format.  The layout is correct, but the expiration date is 
written as a "human readable" date instead of seconds since Unix epoch.

Using FireCookie version 1.2.1 on WinXP Firefox version 5.0, creating export 
file by going to Cookies->"Export cookies for this site"

The exported file created:
-----------------------------
.verisign.com   TRUE    /   FALSE   Wed, 19 Feb 2020 14:28:02 GMT   v1st    asjdakdjhsd
.verisign.com   TRUE    /   FALSE   Sat, 21 Jul 2508 18:37:36 GMT   bn_u    asdadwdwdwdwdw

what should have been created for a valid cookies.txt format
-----------------------------
.verisign.com   TRUE    /   FALSE   1582122482  v1st    asjdakdjhsd
.verisign.com   TRUE    /   FALSE   16995119856 bn_u    asdadwdwdwdwdw

Can you either 1) correct the timestamp output, or 2) add the option to create 
an epoch based file from the UI if your intention is to create a human-readable 
file with your existing export?

Original issue reported on code.google.com by 6513213...@bytality.com on 5 Jul 2011 at 9:09

GoogleCodeExporter commented 9 years ago
I'd also like to add session cookies are not handled correctly:

www.example.com FALSE   /   FALSE   PHPSESSID   eHyT9vJOl2pdLKnRSoaTkOK
should be
www.example.com FALSE   /   FALSE   0   PHPSESSID   eHyT9vJOl2pdLKnRSoaTkOK

Original comment by ste...@stevenroddis.com on 30 Oct 2011 at 10:19

GoogleCodeExporter commented 9 years ago
Manpage for wget:
http://linux.die.net/man/1/wget

Note that Firecookie was integrated into Firebug 1.10a11.

Test case:
1. Open Firebug on http://getfirebug.com
2. Enable and switch to the Cookies panel
3. Reload the page
4. Click Cookies > Export Cookies For This Site
   => The save dialog appears
5. Save the file
6. Load the file in a text editor

Sebastian

Original comment by sebastia...@gmail.com on 20 Jun 2012 at 6:00

GoogleCodeExporter commented 9 years ago
Moved to: Issue fbug:5588

Original comment by sebastia...@gmail.com on 20 Jun 2012 at 6:00