Highlighted

CFHTTP WITH METHOD="POST" DON´T WORKING

New Here ,
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

182

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

CFHTTP WITH METHOD="POST" DON´T WORKING

New Here ,
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

183

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
Jan 14, 2019 0

Have something to add?

Join the conversation