Topic
  • 2 replies
  • Latest Post - ‏2013-10-13T20:15:59Z by HermannSW
Chris.Z
Chris.Z
54 Posts

Pinned topic Header Injection Parameters

‏2013-10-11T19:37:31Z |

Quick and easy question.

Specifically on an MPG.  Can the value be a variable?  it seems to be static/literal field.  For example I want my variable to be: 'var://service/transaction-id' - for every request through that MPG.  So instead of adding a transformation to every rule, I want to inject header here.  Is this possible?

  • kenhygh
    kenhygh
    1576 Posts

    Re: Header Injection Parameters

    ‏2013-10-13T19:32:56Z  

    sorry, it's a literal.

  • HermannSW
    HermannSW
    4740 Posts

    Re: Header Injection Parameters

    ‏2013-10-13T20:15:59Z  

    Not sure that I understand the question fully.

    This is how you can set (HTTP) header variable:

    <dp:set-http-request-header
          name=" 'tid' " value=" {dp:variable('var://service/transaction-id')} "/>


    Hermann<myXsltBlog/> <myXsltTweets/> <myCE/>