note 38284 added to ref.http

From: Date: Mon, 15 Dec 2003 13:41:24 +0000
Subject: note 38284 added to ref.http
Groups: php.notes 
Request: Send a blank email to php-notes+get-61978@lists.php.net to get a copy of this message
You can easily grab the response header from a server like so: $connection = fsockopen ('www.somewhere.com', 80); fputs ($connection, "GET /index.html HTTP/1.0\n\n"); while (($response = fgets ($connection)) !== "\n") $header .= $response; fclose ($connection); Although a Windows server might return "\r\n" (which is probably closer to the official HTTP specification) ---- Manual Page -- http://www.php.net/manual/en/ref.http.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+38284 Delete -- http://master.php.net/manage/user-notes.php?action=delete+38284&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+38284&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#61978) next »