php - In python requests library, cannot do authorization? -


i try wrote code on python: http://vestacp.com/docs/api/#add_user

like this: http://pastebin.com/xdzkkzpg

but cant authorize

in last line, auth missing '=' sign:

req = r.post(vst_hostname, auth(vst_username, vst_hostname), \         params=postvars, verify=false) 

see authentication section in requests documentation more information.


Comments

Popular posts from this blog

jquery - How do you format the date used in the popover widget title of FullCalendar? -

Bubble Sort Manually a Linked List in Java -

asp.net mvc - SSO between MVCForum and Umbraco7 -