This commit is contained in:
2025-11-28 11:37:09 +08:00
parent 5061a17342
commit 0c0a2fadd5
+2
View File
@@ -201,6 +201,8 @@ class CurlClient extends ClientAbstracts
// 获取 HTTP 状态码
$statusCode = +curl_getinfo($this->client, CURLINFO_HTTP_CODE);
var_dump($output, $statusCode);
// 获取 header 的大小(不包括最后的 \r\n\r\n 分隔符)
$headerSize = curl_getinfo($this->client, CURLINFO_HEADER_SIZE);
$header = substr($output, 0, $headerSize);