Mailinglisten-Archive |
Hi,
At 19:38 06.01.00 +0100, you wrote:
> >Für eine bestimmte Auswertung will ich nur die Headerzeilen haben.
Hab das so geloest:
// tralala
while(!feof($fp)) {
$t=fgets($fp,4096);
if (ereg( "^".chr(13).chr(10), $t)) {break;}
echo ("$t");
}
laut HTTP/1.1-Standard (RFC2068) gilt:
"6 Response After receiving and interpreting a request message, a server
responds with an HTTP response message.
Response = Status-Line ; Section 6.1
*( general-header ; Section 4.5
| response-header ; Section 6.2
| entity-header ) ; Section 7.1
CRLF
[ message-body ] ; Section 7.2"
und CR = chr(13), LF = chr(10)
Beispiel: http://service.wiwi.uni-mainz.de/~ostheimer/php/webserverspy/
HTH,
Bernhard aka Osti
php::bar PHP Wiki - Listenarchive