hello,
i am trying to update a website using the webscript but im getting a 405 response statut
what im i missing ?
def update_site (name,login,password,url_backend,url_alfresco): s = requests.Session() data ={'username':login,'password':password} url = url_backend+"/share/page/dologin" r = s.post(url, data=data)if(r.status_code!=200): print "Incorrect login or password " url1='http://127.0.0.1:8080/alfresco/service/api/sites/' print url_alfresco jsonString = JSONEncoder().encode({"shortName": url_alfresco, "title": name, }) headers ={'content-type':'application/json',"Accept":"application/json"} site = s.post(url1,headers=headers,data=jsonString)if(site.status_code!=200): print " Error while creating site" print site.status_code return True; <code>