美文网首页
登录接口重定向时获取cooike

登录接口重定向时获取cooike

作者: 天雨流芳hodo | 来源:发表于2019-11-07 11:18 被阅读0次

    在requests请求登录接口时加入对应参数,取消重定向allow_redirects=False即可。

    r = requests.post(url=url,data=data,allow_redirects=False)
    

    相关文章

      网友评论

          本文标题:登录接口重定向时获取cooike

          本文链接:https://www.haomeiwen.com/subject/kfwmbctx.html