Content-type not changing with CURLOPT_HTTPHEADERS

后端 未结 1 908
时光取名叫无心
时光取名叫无心 2020-12-20 20:35

I\'m trying to POST some JSON to a web service with cURL, using the following code:

$ch = curl_init();
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_s         


        
相关标签:
1条回答
  • 2020-12-20 21:12

    I believe it should be HTTPHEADER, not HTTPHEADERS.

    http://php.net/manual/en/function.curl-setopt.php

    0 讨论(0)
提交回复
热议问题