I am trying to parse a home page of a site, but it is accessible through redirecting from another page only, so I can only have the html of the redirecting page.
How can I get the html page of the "redirected to" page ?
the following is an example: I can get a page a.html, which when I open with browser it will redirect me to b.html, I want to parse b.html, but when I open b.html directly it will require POST parameters that can be sent from a.html to b.html when redirecting.
Edit: just for note, the "redirected to" page is has a relative path, so I do the following:
$pos=strpos($result,"window.location = \"");
$res= substr_replace ($result,"https://thecompletepath/",$pos,0);
echo $res;
and the redirecting is through a javascript code, as following:
<script type="text/javascript" charset="utf-8">
escapeIfModal();
LoadingScreen.start();
window.location = "/home";
</script>