Is it possible crawl ASP.NET pages?

前端 未结 1 1151
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-21 12:38

Is there a way to crawl some ASP.NET pages that uses doPostBack as events calling?

Example:

Page1.aspx:

Contains 1 LinkButton that

相关标签:
1条回答
  • 2021-01-21 13:31

    Yes, it's possible if the code follows a well predictable pattern. You would have to gather the form data from the page and simulate what the doPostBack function does (putting some values in some hidden fields), and send a POST request to the server. What you get back would be a redirection page, so you would have to parse that to get the url of the target page.

    If you mean if search engines like Google will crawl the pages, then that is very unlikely. They might attempt to follow some common patterns of posting and script linking, but generally you need to use proper links between the pages to be sure that they are crawlable.

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