corrected example

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@146123 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Nuno Lopes 2003-12-10 15:28:18 +00:00
parent 8e499b4418
commit 74d92d6b3f

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.11 $ -->
<!-- $Revision: 1.12 $ -->
<reference id="ref.sockets">
<title>Socket functions</title>
<titleabbrev>Sockets</titleabbrev>
@ -205,7 +205,8 @@ if ($result < 0) {
echo "OK.\n";
}
$in = "HEAD / HTTP/1.0\r\n\r\n";
$in = "HEAD / HTTP/1.1\r\n";
$in .= "Host: www.example.com\r\n\r\n";
$out = '';
echo "Sending HTTP HEAD request...";