Spoofing IsPostBack

I am using HtmlAgilityPack as part of an automated process to extract content from existing internal web pages. The problem is I need to get him to think IsPostBack is right.

This is the stream:

  • Make an initial call to the page and extract the HTML.

  • Parse HTML to extract __EVENTVALIDATION, __VIEWSTATE, __EVENTTARGET, etc. and add them to my next POST to the same page.

  • Add specific criteria for POST to simulate user input (such as choosing a date range).

  • POST back to the same page and extract the HTML from the response.

It works when tested, two criteria are set based on my view. But two more are overridden inside the IsPostBack check. So far I have not been able to get it to see IsPostBack true in the second request.

Does anyone know that ASP.NET is trying to install IsPostBack?

+3


source to share


1 answer


for spoofing you need a simple page like the one you want to spoof with this page

for a simple page you want than you need to download this offline browser copy software for this software you will get HTML, CSS, JS.



than you can use it

http://www.httrack.com/

0


source







All Articles