python请求会话返回错误的东西

时间:2017-04-20 03:42:05

标签: python session

嘿,我不知道我是否正在使用请求模块的会话,但这是我试过的

import requests
s = requests.Session()

s.get("/addtocart", data=data, headers=headers) #This is a valid requests and the text it returns says its been added to the cart.
r = s.get('/cart') #But when I print the text here, it says there's no items in my cart

print(r.text)

0 个答案:

没有答案