note 65738 added to features.remote-files

From: Date: Sat, 06 May 2006 22:53:48 +0000
Subject: note 65738 added to features.remote-files
Groups: php.notes 
Request: Send a blank email to php-notes+get-110733@lists.php.net to get a copy of this message
Really, you should not send headers terminated by \n - it's not per-rfc supported by a HTTP server. Instead, send as \r\n which is what the protocol specifies, and that regular expression would be matched anywhere, so match for something like /^Content-Length: \d+$/i on each header-line (headers are terminated by the regular expression /(\r\n|[\r\n])/ - so preg_split on that. Remeber to use the appropriate flags, I can't be arsed to look them up) ---- Server IP: 129.16.214.50 Probable Submitter: 80.217.189.158 ---- X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER autolearn=no version=2.64 ---- Manual Page -- http://www.php.net/manual/en/features.remote-files.php Edit -- http://master.php.net/note/edit/65738 Del: integrated -- http://master.php.net/note/delete/65738/integrated Del: useless -- http://master.php.net/note/delete/65738/useless Del: bad code -- http://master.php.net/note/delete/65738/bad+code Del: spam -- http://master.php.net/note/delete/65738/spam Del: non-english -- http://master.php.net/note/delete/65738/non-english Del: in docs -- http://master.php.net/note/delete/65738/in+docs Del: other reasons-- http://master.php.net/note/delete/65738 Reject -- http://master.php.net/note/reject/65738 Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#110733) next »