I want to use CSRF token in subsequent requests. It is a hidden attribute. I know 2017 release has http client connection where we can solve this issue. However, It would be good if someone tell how to do it in Dell Boomi http client connection.
There's a "Response Headers to Use in Subsequent Requests" section in the operation config. You can specify the name of the header in the box and it will be "reflected". There are some additional details here: HTTP Client operation
I am aware that we can use Response Headers to Use in Subsequent Requests. However I felt like the help is not in detail. Let us say, If I want to login and upload a file where URL uses CSRF token (hidden attribute). How we can achieve? This is how I started doing,
1. I logged in and used Get operation to get the CSRF token
2. I am using PUT operation to upload a file.
Here How the headers to be defined in GET and PUT operations. If the CSRF token hidden parameter name is "csrfToken".
The reflected headers apply to subsequent requests in the same connector shape (i.e., you pass multiple documents into the HTTP connector shape). You can map response headers to request headers across shapes by using the "Response Headers Mapping" configuration to create a document property for the header and then use the "Request Headers" configuration with a replacement variable to map the document property (which contains the response header) to the request header in the second shape. There are details in the original link I provided.
If you also require cookies to be persisted, you should be conscience of the cookie scope setting in the HTTP Client connection.
Retrieving data ...