Greetings,
I am unable to get the Token in my current environment, due to certificates??
I am trying to get a request working to retrieve the token but keep getting an <OSError: Int or String expected> error??
The code is:
params = {'username': username, 'password': password, 'referer': bccreferer, 'f': 'pjson'}
headers = {"Content-type": "application/x-www-form-urlencoded", "Accept": "*.*"}
port = 6443
#### For Python 3
#### req = urllib.request("POST"(tokenURL, urlencode(params)))
#### response = urlopen(req)
conn = http.client.HTTPSConnection(tokenURL, params)
conn.request("POST", "", params, headers)
response = conn.getresponse()
print(response.status, response.reason)
The error points to:
conn.request("POST", "", params, headers)
I would appreciate any pointers to resolve this issue.
Regards,
Clive