How can I get the WebClient to use Cookies?

后端 未结 2 1869
渐次进展
渐次进展 2020-11-27 04:56

I would like the VB.net WebClient to remember cookies.

I have searched and tried numerous overloads classes.

I want to login to a website via POST, then POST

2条回答
  •  刺人心
    刺人心 (楼主)
    2020-11-27 05:38

    You can't make the WebClient class remember the cookies, you have to get the cookie container from the response and use it in the next request.

提交回复
热议问题