There is such code:

import os import http.cookies cookie = http.cookies.SimpleCookie(os.environ.get("HTTP_COOKIE")) name = cookie.get("name") 

What we need: SimpleCookie, os.environ.get ("HTTP_COOKIE")?

  • one
    I suspect, first you need to read what is CGI - andreymal

1 answer 1

The second gets a cookie, and the first one cuts it. Or what answer do you need?