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

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -