sanic/examples/request_stream/client.py

11 lines
191 B
Python
Raw Normal View History

2017-05-05 12:09:32 +01:00
import requests
# Warning: This is a heavy process.
data = ""
for i in range(1, 250000):
data += str(i)
r = requests.post('http://127.0.0.1:8000/method_view', data=data)
2017-05-05 12:09:32 +01:00
print(r.text)