1
0
Fork 0
apache2/test/modules/http2/htdocs/cgi/mnot164.py
Daniel Baumann 7263481e48
Adding upstream version 2.4.63.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-22 11:01:26 +02:00

16 lines
365 B
Python

#!/usr/bin/env python3
import os, sys
from requestparser import get_request_params
forms, files = get_request_params()
text = forms['text'] if 'text' in forms else "a"
count = int(forms['count']) if 'count' in forms else 77784
print("Status: 200 OK")
print("Content-Type: text/html")
print()
sys.stdout.flush()
for _ in range(count):
sys.stdout.write(text)