Commit a8c7d2a5 authored by tbrehm's avatar tbrehm
Browse files

- Improved http monitor function.

parent 9de29945
......@@ -1722,6 +1722,8 @@ class monitor_tools {
// fwrite($fp, "GET / HTTP/1.0\r\n\r\n");
$out = "GET / HTTP/1.1\r\n";
$out .= "Host: localhost\r\n";
$out .= "User-Agent: Mozilla/5.0 (ISPConfig monitor)\r\n";
$out .= "Accept: application/xml,application/xhtml+xml,text/html\r\n";
$out .= "Connection: Close\r\n\r\n";
fwrite($fp, $out);
stream_set_timeout($fp, 5); // Timeout after 5 seconds
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment