Skip to content

Instantly share code, notes, and snippets.

@prologic
Created December 29, 2014 03:57
Show Gist options
  • Save prologic/2c61402dfd30ac10ed42 to your computer and use it in GitHub Desktop.
Save prologic/2c61402dfd30ac10ed42 to your computer and use it in GitHub Desktop.
Sessions with cgod (circuits Gopher Daemon)
(cgod)
prologic@daisy
Mon Dec 29 13:10:40
~/cgod
$ curl -q -o - gopher://arrow.shortcircuit.net.au/0/session+UQoqbbtpvikDPbVKCUDE3F
iSession ID: UQoqbbtpvikDPbVKCUDE3F null.host 0
i null.host 0
iSession Data: null.host 0
(cgod)
prologic@daisy
Mon Dec 29 13:12:16
~/cgod
$ curl -q -o - gopher://arrow.shortcircuit.net.au/0/session+UQoqbbtpvikDPbVKCUDE3F
iSession ID: UQoqbbtpvikDPbVKCUDE3F null.host 0
i null.host 0
iSession Data: null.host 0
i foo: bar null.host 0
$ socat - UNIX-CONNECT:/tmp/cgod.sock
KEYS UQoqbbtpvikDPbVKCUDE3F
SET UQoqbbtpvikDPbVKCUDE3F foo 1234
OK
GET UQoqbbtpvikDPbVKCUDE3F foo
1234
DEL UQoqbbtpvikDPbVKCUDE3F foo
OK
KEYS UQoqbbtpvikDPbVKCUDE3F
asdf
ERR At least 2 parameters required 1 given
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment