From 6deb1040ad4745f7a6b7174f5b8fbcd71e464a73 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Wed, 18 Nov 2020 14:23:58 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- HttpServer/Client/Curl.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/HttpServer/Client/Curl.php b/HttpServer/Client/Curl.php index 3d7f0c95..f0a58859 100644 --- a/HttpServer/Client/Curl.php +++ b/HttpServer/Client/Curl.php @@ -127,9 +127,11 @@ class Curl extends ClientAbstracts curl_setopt($resource, CURLOPT_FOLLOWLOCATION, TRUE);// 跟踪重定向 curl_setopt($resource, CURLOPT_ENCODING, 'gzip,deflate'); if ($method === self::POST || $method == self::UPLOAD) { + var_dump($method); curl_setopt($resource, CURLOPT_POST, 1); } + var_dump($path); curl_setopt($resource, CURLOPT_URL, $path); curl_setopt($resource, CURLOPT_CUSTOMREQUEST, $method);