Legacy Dev Forum Posts

 View Only

Sign Up

Genesys add by default Content-Type header in GET request?

  • 1.  Genesys add by default Content-Type header in GET request?

    Posted 06-05-2025 18:45

    mgalindo | 2024-01-27 00:37:25 UTC | #1

    Hello! I have a question. I have a data action that consumes an external web service. If I consume the UAT web service, everything works correctly. However, when I use the production environment, the data action fails. In the error on the web service side, I observe that the "Content-Type: application/json" header is being sent in a GET request, and this is what causes the failure. I am not adding this header; but when debugging my service, I see that the request arrives with it. My question is, does Genesys add it automatically?


    Jason_Mathison | 2024-02-04 03:36:39 UTC | #2

    Hi Marco,

    We do automatically add a content-type header. This was solved for one customer by adding a content-type header in the request with an empty string for a value. So something like this:

      "headers": {
        "content-type": ""
      },

    --Jason


    system | 2024-03-06 03:37:27 UTC | #3

    This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.


    This post was migrated from the old Developer Forum.

    ref: 24315