cookie-handler


Application
C
GPLv3
Halted

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.

Downloads

You can download the latest version by cloning the git repository:

git clone git://git.lwithers.me.uk/cookie-handler
Released Files.
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.

Integration with uzbl

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.

Example line for uzbl config:
set cookie_handler = talk_to_socket $HOME/.local/run/cookie-handler
Example script for starting uzbl and ensuring daemon is running:
#!/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
If the daemon is already running, the newly-executed instance detects that and exits; otherwise, it continues to run in the background.

News

2009-07-26T15:05Z

2009-07-26T12:42Z