ea
This commit is contained in:
+1
-2
@@ -154,6 +154,7 @@ class CurlClient extends ClientAbstracts
|
|||||||
private function execute(): void
|
private function execute(): void
|
||||||
{
|
{
|
||||||
$output = curl_exec($this->client);
|
$output = curl_exec($this->client);
|
||||||
|
var_dump($output);
|
||||||
if ($output !== FALSE) {
|
if ($output !== FALSE) {
|
||||||
$this->explode($output);
|
$this->explode($output);
|
||||||
} else {
|
} else {
|
||||||
@@ -201,8 +202,6 @@ class CurlClient extends ClientAbstracts
|
|||||||
// 获取 HTTP 状态码
|
// 获取 HTTP 状态码
|
||||||
$statusCode = +curl_getinfo($this->client, CURLINFO_HTTP_CODE);
|
$statusCode = +curl_getinfo($this->client, CURLINFO_HTTP_CODE);
|
||||||
|
|
||||||
var_dump($output, $statusCode);
|
|
||||||
|
|
||||||
// 获取 header 的大小(不包括最后的 \r\n\r\n 分隔符)
|
// 获取 header 的大小(不包括最后的 \r\n\r\n 分隔符)
|
||||||
$headerSize = curl_getinfo($this->client, CURLINFO_HEADER_SIZE);
|
$headerSize = curl_getinfo($this->client, CURLINFO_HEADER_SIZE);
|
||||||
$header = substr($output, 0, $headerSize);
|
$header = substr($output, 0, $headerSize);
|
||||||
|
|||||||
Reference in New Issue
Block a user