#!/usr/bin/python3 import os import sys import io import json from html import escape as html_escape print("Content-Type: text/html") print("") cookies = {} if "HTTP_COOKIE" in os.environ: for cookie in map(str.strip, str.split(os.environ['HTTP_COOKIE'], ';')): (key, value) = cookie.split('=') cookies[key] = value print(""" Cookie test

Reflected cookies


""")