cancel
Showing results for 
Search instead for 
Did you mean: 

HTTP Client Output Adapter: how to deal with Token?

0 Kudos

Dear Colleagues,

we want to use HTTP Client Output Adapter to send HTTP Post requests to generate business objects from transformed events. The service it calls requires token:

https://<host>:<port>/myservice

method: GET

request header: X-Requested-With: XMLHttpRequest

                          X-CSRF-Token:Fetch

Afterwards, POST requests are sent with this Token always included in the request header:

https://<host>:<port>/myservice/ImportObjects

method: POST

request header: x-csrf-token:eygQM5-3e_UTQ==

request body: {...}

Is there a way to handle Token with HTTP Client Output Adapter? What are your best practise with such scenario?

Your input is greatly appreciated.

Thanks and best regards,

Tao

Accepted Solutions (0)

Answers (1)

Answers (1)

RobertWaywell
Product and Topic Expert
Product and Topic Expert
0 Kudos

At this time the HTTP Client Output adapter does not support setting the header.

0 Kudos

Hello Robert,

just want to follow on this topic: will HTTP Client Output adapter supports request header, especially supports retrieving/setting token on header, in the coming SP11?

this is really important for us to send http calls from ESP to our application.

Thanks and regards,

Tao