我正在尝试使用PHP cURL进行POST,但是CURLOPT_POSTFIELDS数据不是纯JSON格式,因此我不确定json_encode是否可以使用。
POST URL:https://data.rcc-acis.org/StnData
POST Data: params={"elems":[{"interval":[1,0,0],"duration":"std","reduce":
{"reduce":"sum","add":"mcnt"},"season_start":"01-
01","name":"pcpn"}],"sid":"CVGthr+9","sDate":"1871-06-19","eDate":"2019-06-
19","meta":[]}
output=json
以JSON格式获取服务器响应的最简单方法是什么?谢谢!