HttpWebResponse.Cookies empty despite Set-Cookie Header (no-redirect)

前端 未结 7 1607
刺人心
刺人心 2020-12-28 14:00

I\'m struggling to figure out what is wrong here. I\'m sending login information, I can see the Set-Cookie in the Header with the correct value, but the Cookies collection

7条回答
  •  温柔的废话
    2020-12-28 14:20

    Use a CookieContainer as in this answer. What tripped these regex approaches up for me was a comma in expires=Tue, ....

提交回复
热议问题