get_cookie added for wsgi and twisted transports.