Skip to main content
Jose_Eduardo_Castilho_387
Participant
January 14, 2019
Question

CFHTTP WITH METHOD="POST" DON´T WORKING

  • January 14, 2019
  • 0 replies
  • 290 views

I am using CFHTTP to connect to an external company API. When I check in the "inspect" of google Browser it is like Resquest Method "GET". The API receives request via "POST". And the Content-type does not change to application/json.

  <cfhttp url="https://app.XXXXXXX.com/ErpPedido/V1" port="443" charset="utf-8" method="Post" result="response">

    <cfhttpparam type="header" name="accept" value="application/json">

    <cfhttpparam type="header" name="Content-Type" value="application/json">

    <cfhttpparam type="body" value="#serializeJSON(stFields)#">

  </cfhttp>

This topic has been closed for replies.