Getting HTML from a page behind a login

前端 未结 8 1997
甜味超标
甜味超标 2021-01-16 05:59

This question is a follow up to my previous question about getting the HTML from an ASPX page. I decided to try using the webclient object, but the problem is that I get the

相关标签:
8条回答
  • 2021-01-16 06:41

    Well does opening the page in a brower with "Login.aspx?UserName=&Password=" normaly work?
    Some pages may not allow login using data provided in the url, and that it must be entered in the login form on the page and then submitted.

    0 讨论(0)
  • 2021-01-16 06:42

    The only other reason I can think of then is that the web page is intentionally blocking it from loggin in. If you have access to the code, take a look at the loggin system used to see if theres anything designed to block such logins.

    0 讨论(0)
提交回复
热议问题