After upgrade to 37. PHP's fsockopen does not work in FF. Security?
I have one PHP App on :80, second at :8080 port. but content from :8080 is nested by "fsockopen" in app with :80 port. After update FF do not shows a content. But other Browsers (chrome, epiphany) continue working.
(mjpeg_streamer camera reverse proxy)
$server = "x.x.x.x"; $port = 8080; $url = "/?action=stream"; // image url on server set_time_limit(0); $fp = fsockopen($server, $port, $errno, $errstr, 30); if (!$fp) {
echo "$errstr ($errno)
\n"; // error handling
} else {
$urlstring = "GET ".$url." HTTP/1.0\r\n\r\n\r\n"; fputs ($fp, $urlstring); while ($str = trim(fgets($fp, 4096))) header($str); fpassthru($fp); fclose($fp);
} ?>
I have one PHP App on :80, second at :8080 port. but content from :8080 is nested by "fsockopen" in app with :80 port.
After update FF do not shows a content. But other Browsers (chrome, epiphany) continue working.
(mjpeg_streamer camera reverse proxy)
<?php
$server = "x.x.x.x";
$port = 8080;
$url = "/?action=stream"; // image url on server
set_time_limit(0);
$fp = fsockopen($server, $port, $errno, $errstr, 30);
if (!$fp) {
echo "$errstr ($errno)<br>\n"; // error handling
} else {
$urlstring = "GET ".$url." HTTP/1.0\r\n\r\n\r\n";
fputs ($fp, $urlstring);
while ($str = trim(fgets($fp, 4096)))
header($str);
fpassthru($fp);
fclose($fp);
}
?>