Login to website, via C#

后端 未结 4 983
萌比男神i
萌比男神i 2020-11-22 15:56

I\'m relatively new to using C#, and have an application that reads parts of the source code on a website. That all works; but the problem is that the page in question requi

4条回答
  •  被撕碎了的回忆
    2020-11-22 16:35

    Sometimes, it may help switching off AllowAutoRedirect and setting both login POST and page GET requests the same user agent.

    request.UserAgent = userAgent;
    request.AllowAutoRedirect = false;
    

提交回复
热议问题