Mashups in EMML : Advanced Mashup Techniques : Adding HTTP Headers to the Mashup Result
Adding HTTP Headers to the Mashup Result
You can define HTTP headers to send with a mashup result when the mashup is invoked in Presto. For any HTTP header, you add <variable> declarations using reserved names in the form httpResponse.header-name.
The header-name portion of the variable name can be any standard HTTP header or a custom header. Custom header names must begin with X-. For example:
<variables>
<!-- standard content type HTTP header for a result is CSV format -->
<variable name="httpResponse.Content-Type" type="string" default="text/csv"/>
<!-- standard last modified HTTP header -->
<variable name="httpResponse.Last-Modified" type="datetime"/>
<!-- custom HTTP header -->
<variable name="httpResponse.X-CUSTOM-HEADER" type="string"/>
</variables>
<assign outputvariable="$httpResponse.X-CUSTOM-HEADER" fromexpr="......"/>
Copyright © 2013-2015 Software AG, Darmstadt, Germany.

Product LogoContact Support   |   Community   |   Feedback