I want to open HTTPS file with PHP but this page makes a redirection to another page so fopen function doesn't parse the page I want.
I have this code :
$url = 'myHTMLPageWithParameters';
$file = file($url);
// test
var_dump($file);
And result :
array (size=12)
0 => string '
' (length=7)
1 => string '
' (length=7)
2 => string '
' (length=31)
3 => string 'function setTop(){top.location="/index.htm"}
' (length=45)
4 => string '
' (length=10)
5 => string '
...' (length=19)
6 => string '
' (length=8)
7 => string '
' (length=1)
8 => string '
' (length=25)
9 => string '
' (length=8)
10 => string '
' (length=1)
11 => string '
' (length=8)
When I display 'myHTMLPageWithParameters' in a HTML browser, I see the correct page after redirection. I'm just looking for a way to capture HTML code of the second page (after the redirection). Thanks for any help