#coding=utf-8
import requests
import json
headers = {
'Content-Type': "application/json",
}
url2 = "http://ivt3.hschefu.com:9199/login"
data2 = {"data": {"password": "12345678", "username": "xiangjin"}}
para2 = json.dumps(data2)
r2=requests.post(url2, data=para2, headers=headers)
print(r2.text)
print(r2.cookies)
url1 = "http://ivt3.hschefu.com:9199/v1/app/login"
data1 = {"data": {"password": "12345678", "username": "18583287560"}}
para1 = json.dumps(data1)
r1= requests.post(url1, data=para1, headers=headers)
# token = r.cookies.items()[0][1]
# cookies = r1.headers
print(r1.text)
print(r1.cookies)