cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic Header during HTTP post.

Former Member
0 Kudos

Hai Experts,

Is there any option to pass source filename which is going to be dynamic(ie any text file with any name ) as a header in HTTP post to a URL?

To be more clear on my question I am doing a File to HTTP scenario.In the source directory any text file with any name will be kept.I have to pick that file and then when i do an HTTP post at the target along with other static headers(which i can hard code with the header fields option in the receiver communication channel) i have to pass the source filename also as a header.Is it possible by any way.please remember that at the source we are having a text file which contains no structure.

good lighting into this will be appreciated and rewarded

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Answered

former_member200962
Active Contributor
0 Kudos

Hi,

You can try this blog:

Regards,

Abhishek.

prateek
Active Contributor
0 Kudos

First u may use Dynamic Configuration to get the filename from the source file path. U may get this data in payload. Then at the receiver HTTP adpater, u may use the option "Header Fields". To see the complete structure in XI, go to tcode smicm and change the trace level there to 3.

Regards,

Prateek