Can't get rest api to work on 3.3
Posted: Wed Jun 03, 2015 2:17 am
I've been running a 3.2 alpha build and I have some scripts to hit the rest api. I just can't get them to work on the latest code base using wget or curl. All I ever get is 403 Forbidden. For example, this small python routine works on 3.2alpha but not on 3.3. Did something change with authentication on 3.3 already?
thanks!
from lib import requests
from lib.requests.auth import HTTPDigestAuth
response = requests.get('http://192.168.1.200:7097/query/preferences', auth=HTTPDigestAuth('user','password'))
if not response.ok:
response.raise_for_status()
print response.content
thanks!
from lib import requests
from lib.requests.auth import HTTPDigestAuth
response = requests.get('http://192.168.1.200:7097/query/preferences', auth=HTTPDigestAuth('user','password'))
if not response.ok:
response.raise_for_status()
print response.content