IBM Verify

IBM Verify

Join this online user group to communicate across Security product users and IBM experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
Expand all | Collapse all

500 http error : Header Error for 'Content-Type': 'application/json;charset=utf-8' | Expected 'Content-Type': 'application/json'

  • 1.  500 http error : Header Error for 'Content-Type': 'application/json;charset=utf-8' | Expected 'Content-Type': 'application/json'

    Posted Thu February 25, 2021 04:59 PM

    Hello Team,

    We have an issue with one of the application, where it is expecting header Content-Type  as "application/json" where as application team is receiving it as "application/json;charset=UTF-8" when there is a POST for applciaiton rest services.

    Is there any way if we can override/replace  Content-Type header when method is post and content type is "application/json;charset=UTF-8" (ignore case) to "application/json" from ISAM end? If yes, Please advise!

    Thanks in advance,
    Kishore



    ------------------------------
    NANDA KISHORE GUTHI
    ------------------------------


  • 2.  RE: 500 http error : Header Error for 'Content-Type': 'application/json;charset=utf-8' | Expected 'Content-Type': 'application/json'

    Posted Wed March 03, 2021 07:51 AM
    Kishore,


    Are you saying that ISAM is changing the content-type header and causing application break?
    Or are you saying that client is sending incorrect content-type header and you want ISAM to change it as it flows through?

    If you want ISAM to change a header, this should be possible using transformation rules.  This presentation should help:
    https://www.ibm.com/support/pages/sites/default/files/support/swg/swgdocs.nsf/0/ef18d159f48a4a8f85258131005a545b/%24FILE/OpenMic-HTTP_Transformation_Rules-17Oct2017-V2.pdf

    Jon.

    ------------------------------
    Jon Harry
    Consulting IT Security Specialist
    IBM
    ------------------------------