Getting '401 unauthorized' when tring to send a GET request to systeminfo.xml

I want to get the configuration of devices on my XProtect Corporate account, I am following this post

http://doc.developer.milestonesys.com/html/reference/protocols/imageserver_getdevices.html

but i am getting 401, unauthorized every time.

Until now I have managed to authenticate myself and got a token, now as i have the corporate account, i will need to send the token for the authorization, I am using requests lib in python to send a GET request like this

head = {‘Authorization’: ‘Token {}’.format(myToken)}

response = requests.get(‘http://server-ip/rcserver/sysmteminfo.xml’, headers=head)

print response

I am not sure about how to send my token in this get request

Any help will be highly appreciated

SystemInfo.xml does not work with tokens and does not work with SSL, only NTLM authentication will work when on c-code server.

On the Server SOAP protocol there is a GetConfiguration function.

http://doc.developer.milestonesys.com/html/index.html?base=serversoaphelp/class_server_command_service.html&tree=tree_3.html

http://doc.developer.milestonesys.com/html/index.html?base=reference/architecture/product_support.html&tree=tree_3.html

Thank you Bo Anderson. It worked but i think you should mentioned that on the instruction (the post i shared with you), but thanks again