How Can I Use HTTP Requests To Get Data From A .jsf Page?
I need to fetch data programmatically from JSF sites. Here's an example: https://dataminer.pjm.com/dataminerui/pages/public/lmp.jsf To get data, enter any Start Date and End Date a
Solution 1:
You may well not be able unless you go through everything that leads up to the page in question. JSF pages tend to store a lot of state within the web session, so you may simply be able to POST some static payload (like you're doing) and expect it to work.
A perfect example is that ViewState parameter. That value may very well change every single time, so the value you're using could be completely invalid.
So, instead of going to straight to whatever request you're trying to do, you may well have to "walk the pages" that got you there.
Track all of the requests it takes to get there, see what changes from step to step and session to session, and see if you can work out the minimum number of steps (ideally just 1 or 2) to pull it off.
Post a Comment for "How Can I Use HTTP Requests To Get Data From A .jsf Page?"