#!/usr/bin/env python3 import sys sys.stdout.write( 'Set-Cookie: scope=manifest; path=/appcache/resources/scope1; HttpOnly\r\n' 'Set-Cookie: scope=script; path=/appcache/resources/scope2; HttpOnly\r\n' 'Set-Cookie: foo=bar\r\n' 'Content-Type: text/html\r\n\r\n' ) print('''