note 39295 deleted from function.fsockopen by cmb
| From: | cmb@php.net | Date: | Sun, 10 Nov 2019 12:54:49 +0000 |
| Subject: | note 39295 deleted from function.fsockopen by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-213011@lists.php.net to get a copy of this message | ||
Note Submitter: rob at robhulme dot com
----
Just a note to everyone who is using fsockopen and fread / fgets for a HTTP connection.
Unless you specify "Connection: Close" in your headers you will need to wait for the
socket to time out before feof($streamPointer) to return true.
This has wasted 2 days of my time, grr!
-Rob