cvs: php-master-web /scripts mirror-test

From: Date: Mon, 04 Aug 2003 10:13:51 +0000
Subject: cvs: php-master-web /scripts mirror-test
Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-19808@lists.php.net to get a copy of this message
goba Mon Aug 4 06:13:51 2003 EDT Modified files: /php-master-web/scripts mirror-test Log: Identify ourselfs uniquely, so debugging may be easier in some cases Index: php-master-web/scripts/mirror-test diff -u php-master-web/scripts/mirror-test:1.46 php-master-web/scripts/mirror-test:1.47 --- php-master-web/scripts/mirror-test:1.46 Mon Aug 4 05:49:16 2003 +++ php-master-web/scripts/mirror-test Mon Aug 4 06:13:50 2003 @@ -55,7 +55,9 @@ } // GET mirror-info.php from the registered hostname - $rc = fputs($fp, "GET $filename HTTP/1.0\r\nHost: $host[hostname]\r\n\r\n"); + $rc = fputs($fp, "GET $filename HTTP/1.0\r\n" . + "Host: {$host['hostname']}\r\n" . + "User-Agent: PHP.net Mirror Site Check\r\n"); // If we were unable to write to socket, skip mirror site if ($rc === FALSE) {

« previous php.mirrors (#19808) next »