• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

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

263

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
Resources
Documentation