diff --git a/python-IDAS4/ContextBroker/CheckVersion.py b/python-IDAS4/ContextBroker/CheckVersion.py index 4d4665c..a1a897d 100644 --- a/python-IDAS4/ContextBroker/CheckVersion.py +++ b/python-IDAS4/ContextBroker/CheckVersion.py @@ -40,8 +40,7 @@ f.close() CB_URL = "http://"+CB_HOST+":"+CB_PORT -PAYLOAD = {'some' : 'data'} -HEADERS = {'content-type': 'application/json' , 'X-Auth-Token' : TOKEN} +HEADERS = {'X-Auth-Token' : TOKEN} HEADERS_SHOW = {'content-type': 'application/json', 'accept': 'application/json' , 'X-Auth-Token' : TOKEN_SHOW} URL = CB_URL + '/version' @@ -49,7 +48,7 @@ print "* Asking to "+URL print "* Headers: "+str(HEADERS_SHOW) print "..." -r = requests.get(URL, data=json.dumps(PAYLOAD), headers=HEADERS) +r = requests.get(URL, headers=HEADERS) print print "* Status Code: "+str(r.status_code) print "* Response: "