master
elf 2 years ago
parent 2754e7d01c
commit 2bc6d34e4f

@ -36,8 +36,8 @@ class Client
curl_setopt($curl, CURLOPT_URL, $url);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($curl, CURLOPT_POST, true);
$headers = ['content-type: application/x-www-form-urlencoded; charset=GBK'];
curl_setopt($curl, CURLOPT_HTTPHEADER, $headers);
// $headers = ['content-type: application/x-www-form-urlencoded; charset=GBK'];
// curl_setopt($curl, CURLOPT_HTTPHEADER, $headers);
curl_setopt($curl, CURLOPT_POSTFIELDS, $params);
$response = curl_exec($curl);
curl_close($curl);

Loading…
Cancel
Save