Use res.get_cookies instead of homebrew parse. Use _cgi