elseif (303 ===
$info['http_code'
] || ('POST' ===
$info['http_method'
] && \
in_array($info['http_code'
],
[301, 302
], true
))) { curl_setopt($ch, \CURLOPT_POSTFIELDS, ''
);
} } return \
strlen($data);
} // End of headers: handle informational responses, redirects, etc.
if (200 >
$statusCode) { $multi->handlesActivity
[$id][] =
new InformationalChunk($statusCode,
$headers);
$location = null;
return \
strlen($data);
} $info['redirect_url'
] = null;
if (300 <=
$statusCode &&
$statusCode < 400 && null !==
$location) { if ($noContent = 303 ===
$statusCode || ('POST' ===
$info['http_method'
] && \
in_array($statusCode,
[301, 302
], true
))) { $info['http_method'
] = 'HEAD' ===
$info['http_method'
] ? 'HEAD' : 'GET';
curl_setopt($ch, \CURLOPT_CUSTOMREQUEST,
$info['http_method'
]);
}