concordia-docker/tools/getTmsInfo3.py

24 lines
378 B
Python
Raw Normal View History

2019-05-18 00:37:44 +02:00
#!/usr/bin/python3
# -*- coding: utf-8 -*-
import json
import requests
import sys
import time
import host
address = 'http://'+host.concordia_host
if len(host.concordia_port) > 0:
address += ':'+host.concordia_port
print("Trying getTmsInfo on %s" % address)
data = {
'operation': 'getTmsInfo'
}
response = requests.post(address, json=data)
print(response.content)