#!/usr/bin/env python3 import sys sys.stdout.write( 'Content-Disposition: attachment; filename=test.xhtml\r\n' 'Content-Type: application/xhtml+xml\r\n\r\n' '\n' '\n' '\n' '\n' '\n' )