blob: c9083e1d53f4dabfb06d104b8fac2ad37af8cf6c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#!/usr/bin/env python3
import os, sys
import multipart
status = '200 Ok'
content = ''
for line in sys.stdin:
content += line
# Just echo what we get
print("Status: 200")
print(f"Request-Length: {len(content)}")
print("Content-Type: application/data\n")
sys.stdout.write(content)
|