in reply to Re^4: CGI on the console
in thread CGI on the console

My guess is either HTTP_COOKIE or COOKIE. The format seems to be something like:

COOKIE=name=value;name2=value1&value2
This should be in your environment, but beware that if you're on unix, the ';' is a special character, so you need to properly escape this.

This is all just a SWAG. YMMV.