When I want to do cookie-ish things with wget, it sure is a hassle that first I have to convert ~/Library/Cookies/Cookies.plist into a Netscape-4 style cookie file first. (Even Firefox doesn't support that format of cookies.txt any more!)

Library/Cookies/Cookies.plist is shared by all HTTP-using applications on MacOS (it's a WebKit thing, not a Safari thing.) It's a trivial XML format:

<array>
  <dict>
    <key>Domain</key>
    <string>.foo.com</string>

    <key>Name</key>
    <string>...</string>

    <key>Path</key>
    <string>/</string>

    <key>Value</key>
    <string>...</string>
  </dict>
...

--
Jamie Zawinski       [email protected]                  http://www.jwz.org/
                    [email protected]      http://www.dnalounge.com/
                                         http://jwz.livejournal.com/



Reply via email to