note 61556 added to ref.curl

From: Date: Mon, 06 Feb 2006 21:53:34 +0000
Subject: note 61556 added to ref.curl
Groups: php.notes 
Request: Send a blank email to php-notes+get-103140@lists.php.net to get a copy of this message
To shed some light on some of the numbers trucex at gmail has in his tests, some of the web pages (Yahoo and GoDaddy) downloaded at exceptionally faster speeds than with file_get_contents(). This is simply because CURL accepts (by default) compression protocols such as deflate and gzip. Most likely GoDaddy.com may be using compression for specific HTTP clients including CURL. I know for a fact that Yahoo.com and Google.com use gzip compression. You can test servers for gzip compression here: http://www.whatsmyip.org/mod_gzip_test/ For the sake of performance, I would recommend the use of CURL. if performance was not an issue and I wanted to keep my code simple and portable (for PHP servers without the cURL extension) I would use file_get_contents(). ---- Server IP: 64.71.164.2 Probable Submitter: 12.27.54.83 ---- Manual Page -- http://www.php.net/manual/en/ref.curl.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+61556 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+61556&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+61556&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+61556&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+61556&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+61556&report=yes&reason=non-english Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+61556&report=yes&reason=already+in+docs Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+61556&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+61556&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#103140) next »