cancel
Showing results for 
Search instead for 
Did you mean: 

Content type in REST adapter

Former Member
0 Kudos

Hi Experts,

I'm trying to change the Content-Type of my http post REST request from  "application/json" to "multipart/form-data".

I defined an additional http header name "Content-Type" in my REST adapter and i set the value to "multipart/form-data".

But, i still have content type to "application/json" when i catched my request with a proxy debbug tool.


Does anyone know how to change the content type for REST adapter?


Regards

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi experts, is it any suggestions about how to use multipart/form-data in REST ? Thanks in advance.

vadimklimov
Active Contributor
0 Kudos

Hi Franklin and Andrey,

There was an issue in REST adapter ignoring custom set content type header, but it was fixed - patches provided in SAP Notes 2199568 and 2173994. I have just tested this behaviour in one of internal systems (PO 7.31 SP16 with almost most recent patches applied) - worked well for me when setting header "Content-Type" in the tab "HTTP Headers" of a REST receiver communication channel configuration.

Regards,

Vadim