Question

7
Replies
1815
Views
GanithDNP Member since 2014 5 posts
Virtusa
Posted: 2 years ago
Last activity: 1 year 8 months ago
Closed
Solved

Connect-REST content-type: "application/JSON" not setting in the out going request

In the Connect-REST rule POST header is set to Content-Type: "application/json".

But in the captured Connect REST request has override the header Content-Type with "text/plain" as follows.

Wed Apr 04 03:22:41 CDT 2018:INFO:--8dZGfHO7gPBZCjmgYUr04__I9QM0vQR
Content-Disposition: form-data; name="PostData"
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 8bit

{JSON content}

--8dZGfHO7gPBZCjmgYUr04__I9QM0vQR
Content-Disposition: form-data; name="attachments"; filename="Citi_leftmenubar_bg.jpg"
Content-Type: application/octet-stream
Content-Transfer-Encoding: binary

Note: Connect-REST Request is build with attachments

Is there any other option to set header value as "application/json" apart from adding header in the Connector rule.

***Edited by Moderator Marissa to update Content Type from Discussion to Question; update SR details***

Data Integration SR Created
Moderation Team has archived post
Share this page LinkedIn