This commit is contained in:
Benoit Marty 2022-04-07 09:30:52 +02:00
parent d4add052d9
commit 1a53d2c8da
1 changed files with 2 additions and 2 deletions

View File

@ -65,6 +65,6 @@ for item in items:
print("# " + item[0] + " (" + item[1] + ")")
print("====================================================================================================")
if item[2]:
os.system("curl -s -X GET '" + item[1] + "' | python -m json.tool")
os.system("curl -s -X GET '" + item[1] + "' | python3 -m json.tool")
else:
os.system("curl -s -X POST --data $'{}' '" + item[1] + "' | python -m json.tool")
os.system("curl -s -X POST --data $'{}' '" + item[1] + "' | python3 -m json.tool")