note 105334 added to function.file-get-contents
| From: | LGB at osu1 dot php dot net | Date: | Wed, 10 Aug 2011 08:35:06 +0000 |
| Subject: | note 105334 added to function.file-get-contents | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-182385@lists.php.net to get a copy of this message | ||
It seems, that file_get_contents() does not work too well (at least for me) if it's about a
http URL and the server is 1.1 capable returning some chunked encoding as answer (without
Content-Length). It seems the answer of file_get_contents() contains the raw answer, with some
garbage at the beginning (maybe because of the chunked encoding). But for sure, I would like to get
the "decoded" answer, I am not interested in the on-wire representation of the sent data.
Though it's possible that it's my fault, now I have to set the server/client to use HTTP
1.0 and it works this way, but it's not so elegant.
----
Server IP: 69.147.83.197
Probable Submitter: 213.163.0.181
----
Manual Page -- http://www.php.net/manual/en/function.file-get-contents.php
Edit -- https://master.php.net/note/edit/105334
Del: integrated -- https://master.php.net/note/delete/105334/integrated
Del: useless -- https://master.php.net/note/delete/105334/useless
Del: bad code -- https://master.php.net/note/delete/105334/bad+code
Del: spam -- https://master.php.net/note/delete/105334/spam
Del: non-english -- https://master.php.net/note/delete/105334/non-english
Del: in docs -- https://master.php.net/note/delete/105334/in+docs
Del: other reasons-- https://master.php.net/note/delete/105334
Reject -- https://master.php.net/note/reject/105334
Search -- https://master.php.net/manage/user-notes.php