|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2000-08-11 18:51 UTC] hholzgra@php.net
[2000-08-11 19:16 UTC] hholzgra@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Mon Jun 15 16:00:01 2026 UTC |
| [...] | fputs ($fp, "GET / HTTP/1.0\n\n"); | [...] lineendsequenz for HTTP messages is CRLF and not "\n". see RFC 2616 and `perldoc perlport` for this issue. People use this example to perform HTTP requests and think they do the right thing ('the manual says ...'). CRLF (0x0d 0x0a) should be used instead (and a 'Host:' header could be added).