In My project I need to get the html content of another webpage in our server. The problem is that particular page has some dynamic content and I need the data in that content to do a regx analysis.
sample content from the page
<div id="loading" class="loading">ESPERE UN MOMENTO POR FAVOR...<br /><img src="images/cargador.gif" border="0" alt="ESPERE UN MOMENTO POR FAVOR..." /></div>
<p></p>
<div class="tabla_d">
<form method="post" action="xxx">
<div id="nresults"></div>
</form>
</div>
<script language="javascript">
function checkavailability() {
jQuery("#loading").slideDown();
jQuery.post("cart.php", { a: "noptions", sld: jQuery("#sld").val(), tld: jQuery("#tld").val(), checktype: 'transfer', ajax: 1 },
function(data){
$('html, body').animate({scrollTop: '550px'}, 800);
jQuery("#nresults").html(data);
jQuery("#nresults").slideDown();
jQuery("#loading").slideUp();
});
}
The content is loaded in the div tag with id="nreults"
. I can view the data when I inspect the element but I am not able to get the data using CURL. Is there any way I can do this? I am pretty new and any help would be appreciated.