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)
|
|
|
|
|
2017-05-09 14:31:15 +01:00
|
|
|
r = requests.post('http://127.0.0.1:8000/stream', data=data)
|
2017-05-05 12:09:32 +01:00
|
|
|
print(r.text)
|