corrected example

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@146212 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Nuno Lopes 2003-12-11 14:21:06 +00:00
parent 04627eb5f6
commit 5f965dac49

View file

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