cancel
Showing results for 
Search instead for 
Did you mean: 

Cannot send HTTP Content-Type header without charset value

robin_k
Discoverer
0 Kudos
2,025

Hello Community,


I am trying to set up a http request from abap against an external server.

The Request is a Post request which hast to be the exact Content-Type 'application/jose+json'.

My abap http client is setting the header field perfectly well but SAP seems to be sending:

content-Type: "application/jose+jason; charset=utf-8".

which conflicts with the check on server side I am sending it to.

I already found a sap note which wants me to update my REST client.

https://launchpad.support.sap.com/#/notes/2456232/E

So it seems to be a common problem

The problem is I only get .SCA files and I don't get how to get them into my ABAP stack SAP System.

My setup is:

Component    Release        SP-Level    Support Package
SAP_BASIS    752            0006      SAPK-75206INSAPBASIS  
SAP_ABA      752            0006      SAPK-75206INSAPABA      
SAP_GWFND    752            0006      SAPK-75206INSAPGWFND    
SAP_UI       752            0009      SAPK-75209INSAPUI       
ST-PI        740            0013      SAPK-74013INSTPI        
SAP_BW       752            0006      SAPK-75206INSAPBW        
UIBAS001     300            0006      SAPK-30006INUIBAS001    

Thank you for anything that gets me closer to a solution.


Regards,

Robin

View Entire Topic
markus_reich
Participant
0 Kudos

Hi,

I'm running in the same problems 😞

Did anyone find a solution for this? Running cUrl as command is no proper solution I think 😞

best regards

Meex

robin_k
Discoverer
0 Kudos

Hi Markus,

I do not remember all the details, but using the SET_DATA method instead of the SET_CDATA method solved it for me.

As far as i remeber I didn't even need to convert the data to binary.

Best regards,

Robin

markus_reich
Participant
0 Kudos

Hi Robin,

set_data requires as xstring, converting my string to xstring results in an error from API site as they don't accept binary content postings 😞

regards

Meex