You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i have an issue sending http head requests. these will hang indefinitely, because there is no default timeout set. i found the solution: if you want to send a head request with curl, you need to set CURLOPT_NOBODY to true.
so i changed:
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, $this->method);
if ($this->method==HTTP::HEAD) {
curl_setopt($ch, CURLOPT_NOBODY, true);
}
The text was updated successfully, but these errors were encountered:
Hi,
i have an issue sending http head requests. these will hang indefinitely, because there is no default timeout set. i found the solution: if you want to send a head request with curl, you need to set CURLOPT_NOBODY to true.
so i changed:
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, $this->method);
if ($this->method==HTTP::HEAD) {
curl_setopt($ch, CURLOPT_NOBODY, true);
}
The text was updated successfully, but these errors were encountered: