#!/usr/bin/env python3 import sys sys.stdout.write( 'Location: server-redirect-result.html\r\n' 'status: 301\r\n' 'Content-Type: text/html\r\n\r\n' )