login(s,user="admin",psw="e10adc3949ba59abbe56e057f20f883e"):
u'''登录禅道'''
loginUrl = host+"/zentao...;q=0.8,en-US;q=0.5,en;q=0.3",
"Accept-Encoding": "gzip, deflate",
"Referer": host+"/zentao...: user,
"password": psw,
"keepLogin[]": "on",
"referer": host+"/zentao...s.post(loginUrl, data=body, headers=h)
print(r.content) # 打印结果看到location='http://127.0.0.1/zentao.../my/'说明登录成功了
if "/zentao/my/" in r.content:
print("登录成功!")