Bookmark and Share Share

Adding HTTP Headers to the Mashup Result

You can define HTTP headers to send with a mashup result when the mashup is invoked. 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="date"/> 
  <!-- custom HTTP header --> 
  <variable name="httpResponse.X-CUSTOM-HEADER" type="string"> 
</variables> 
<assign outputvariable="$X-CUSTOM-HEADER" fromexpr="......"/>