24 lines
378 B
Python
Executable File
24 lines
378 B
Python
Executable File
#!/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)
|