Videos
Blogs
Hi i am trying replicate this call by PHP to Coldfusion: The call must be by method GET but passing data json in body {“parameter”: “2222222”} In PHP works fine but in coldfsuion no. $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, ‘http://{—URL—}); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_CUSTOMREQUEST, ‘GET’); curl_setopt($ch, CURLOPT_POSTFIELDS, “{‘param’: ‘2222222’}”); $headers = array(); $headers[] = ‘X-Api-Token: {—TOKEN–}’; $headers[] = ‘Content-Type: application/json’; curl_setopt($ch, CURLOPT_HTTPHEADER, $headers); $result = curl_exec($ch); Coldfusion not works fine: <cfhttp url=”http://—-URL—” method=”GET” result=”res” charset=”utf-8″> <cfhttpparam type=”header” […]
Upcoming Events