note 105334 deleted from function.file-get-contents by danbrown

From: Date: Wed, 10 Aug 2011 15:48:39 +0000
Subject: note 105334 deleted from function.file-get-contents by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-182398@lists.php.net to get a copy of this message
Note Submitter: LGB ---- 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.

« previous php.notes (#182398) next »