note 120450 deleted from function.curl-setopt by crell

From: Date: Thu, 31 Mar 2022 20:55:40 +0000
Subject: note 120450 deleted from function.curl-setopt by crell
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-217989@lists.php.net to get a copy of this message
Note Submitter: chris at ocproducts dot com ---- Never provide a CURLOPT_CUSTOMREQUEST value of 'HEAD'. It will cause cURL to timeout. Instead set CURLOPT_NOBODY to true. The problem occurs because CURLOPT_CUSTOMREQUEST directly substitutes what cURL sends in transit, but not the response handling logic. It causes it to stall waiting for data that will never come.

« previous php.notes (#217989) next »