CFHTTP WITH METHOD="POST" DON´T WORKING

New Here ,
Jan 14, 2019 Jan 14, 2019

Copy link to clipboard

Copied

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>

Views

197

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
no replies

Have something to add?

Join the conversation