Forum Discussion

RicoJ's avatar
RicoJ
Icon for Nimbostratus rankNimbostratus
Oct 06, 2008

Is it possible to use Stream profiles to add a request header

Hi all

 

 

Would it be possible to use a stream profile to add a request header?

 

 

An application of this would be rewriting the webservice call to insert a SOAPAction header based on the contents of the SOAP body.

 

 

Thanks and best regards.

 

Rico

1 Reply

  • Hi Rico,

     

     

    A stream profile can be used to modify the request or response body. If you are parsing the requests and/or responses as HTTP using an HTTP profile, then you would not be able to use the stream profile to modify the HTTP headers. Instead you could use the HTTP::header command. This would probably be easier than using a stream profile. You can check the HTTP::header wiki page (Click here) for details.

     

     

    Aaron