Athanasius 6799a7fae9 scripts/testing: Target dev:4432, not beta:4431
In the long-term these all need to support a CL arg to select the
target.
2022-01-11 15:36:53 +00:00

21 lines
351 B
Python

#!/usr/bin/env python3
import json
import requests
import sys
if len(sys.argv) != 2:
print('test-sender.py <filename>')
sys.exit(-1)
with open(sys.argv[1], 'r') as f:
msg = f.read()
s = requests.Session()
r = s.post('https://dev.eddn.edcd.io:4432/upload/', data=msg)
print(f'Response: {r!r}')
print(f'Body: {r.content.decode()}')