note 56049 added to function.fsockopen

From: Date: Sun, 21 Aug 2005 22:38:48 +0000
Subject: note 56049 added to function.fsockopen
Groups: php.notes 
Request: Send a blank email to php-notes+get-94007@lists.php.net to get a copy of this message
I have found, when using fsockopen() and the POST method, that using HTTP/1.1 is VERY significantly slower than HTTP/1.0 (at least for the server I'm querying, an Orion-based server). Also, using cURL tended to be faster than fsockopen(), though only slightly. For example, here was a recent set of data (for the same exact request in each case): cURL: 4.2sec fsockopen() HTTP/1.0: 4.9sec fsockopen() HTTP/1.1: 19.9sec (!) I'm not sure why this was occurring. Perhaps it has something to do with the Orion server, which I have little experience with. However, it was not a fluke, and I double-checked the code to make sure there were no errors. ---- Manual Page -- http://www.php.net/manual/en/function.fsockopen.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+56049 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+56049&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+56049&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+56049&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+56049&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+56049&report=yes&reason=non-english Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+56049&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+56049&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#94007) next »