mirror of
https://github.com/apache/httpd.git
synced 2026-10-23 22:49:01 +03:00
Submitted by Maya Echtinaw This closes #808 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1939059 13f79535-47bb-0310-9956-ffa450edef68
16 lines
274 B
Python
16 lines
274 B
Python
#!/usr/bin/env python3
|
|
import os, sys
|
|
|
|
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)
|
|
|