Got a weird problem today
Calling php's curl under the window system reports an error
Error message: Problem (2) in the Chunked-Encoded data
But the logic has completely worked out, and I can't figure it out
Check the blog, add a line of code before curl_exec():
curl_setopt($curl, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0); //Force the use of http1.0
The request return value is normal, but I still can't understand the reason, record it