Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>NOTE: I missed the part that you will be parsing from an Android app. I put in an edit request to add Android as a tag.</p> <p>Looking at that site, it should definitely be reproduceable. Here is what I do in these scenarios. There maybe an easier way to do this, but I know this works:</p> <p>First, look at the request in Firebug and note all of the variables passed in, and whether or not the request is a GET or POST. Then use HttpWebRequest to hit this page passing in the same variables with the same method. If you see that the output contains the data you need, you're all set, it's just a matter now of parsing text. Looking at that site, WebResource.axd is not the page you want to call. It just contains Javascript. The site uses a POST back to itself to regenerate the entire page, so look into that.</p> <p>If that didn't work, you need to add some steps before you do the above. Use HttpWebRequest to essentially recreate how a real user would access the site. In this case, you'll be making your first request to <a href="http://gps.skgt-bg.com/Web/SelectByLine.aspx" rel="nofollow">http://gps.skgt-bg.com/Web/SelectByLine.aspx</a>. In conjunction with this, you will need to use a CookieContainer object to capture any cookies that get set so subsequent requests will send th pertinent cookie data. This will help if the AJAX request was looking for cookie data. Next, look at the AJAX parameters and see if any of them are automatic .NET parameters getting passed like __VIEWSTATE. If so, you need to parse out your first call to find these values and use them when in the next request.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload