Home  >  Q&A  >  body text

cookies - python failed to log in to the website using cookies

I used fiddler to obtain the segmentfault cookie, and then used requests to directly bring this cookie to request my segmentfault page. What would cause failure?

世界只因有你世界只因有你2734 days ago567

reply all(1)I'll reply

  • PHP中文网

    PHP中文网2017-05-18 10:48:54

    a=requests.Session()
    r=a.get(url, headers=headers,cookies=cookie,verify=False)

    reply
    0
  • Cancelreply