cookie-handler is a daemon for managing cookie requests for a browser. The browser
can connect over a Unix SOCK_SEQPACKET socket and send GET/PUT requests for cookies.
Underneath, cookie-handler uses libsoup.
It was written for the uzbl browser but is not specifically
tied to it.
cookie-handler could be run in foreground mode and monitored by
daemonitor. See below for some more information.
You can download the latest version by cloning the git repository:
git-clone git://lwithers.me.uk/cookie-handler
| Version | Date | Source | GPG Signature (key) | Dependencies |
|---|---|---|---|---|
| 1.0.1 | 2009-07-26 | .tar.bz2 | .tar.bz2 | libsoup, libevent |
Older releases may be found here.
The daemon must be started and running for uzbl to connect to it. uzbl
does not (yet) start the daemon, so an external mechanism is required for that.
set cookie_handler = talk_to_socket $HOME/.local/run/cookie-handler
#!/bin/sh
SOCKET_PATH="${HOME}/.local/run/cookie-handler"
[ ! -d `dirname "${SOCKET_PATH}"` ] && mkdir -p `dirname "${SOCKET_PATH}"`
JAR_PATH="${XDG_DATA_HOME:-${HOME}/.local/share}/cookie-handler/cookies.txt"
[ ! -d `dirname "${JAR_PATH}"` ] && mkdir -p `dirname "${JAR_PATH}"`
/usr/bin/cookie-handler --socket "${SOCKET_PATH}" --jar "${JAR_PATH}"
/usr/bin/uzbl
libevent's file descriptors were clobbered after
the fork. Daemon mode now verified to work correctly.