#!/usr/bin/env python3 import sys import time sys.stdout.write( 'Content-Type: text/html; charset=utf-8\r\n\r\n' '\n' '\n' '\n'.format('A' * 2048) ) sys.stdout.flush() time.sleep(1) sys.stdout.write( '\n' '\n' '\n' '\n' )