req.send_response(200)
req.send_header('Content-Type', 'application/zip')
req.send_header('Content-Disposition', 'attachment;filename=%s' % filename)
How to send a file via HTTP, the good way, using Python?