i want to read the source code of redtube.com (the page where videos resides)
but when visit to redtube.com , it need to confirm a certain condition.
(so i want to by pass that condition and read the source of the redtube.com video web page)
how to do such a thing....
(i need to by pass that cookie and read the full source)
when i do like this.... it only shows the source of the welcome screen.
(where, we need to confirm the message.... ex: Enter/Leave)
Code: Select all
<?php
$fh = fopen("http://www.redtube.com", "r");
$fullstring;
while(!feof($fh))
{
$output = htmlspecialchars(fgets($fh, 1024));
#echo ("$output");
$fullstring = $fullstring."".$output;
}
echo $fullstring;
?>