I'm trying to add a get parameter to the back end request. But I'm not finding an examples of how to do this. HELP! :)
Here is what I have:
<serviceProxy>
...
<target host="
backend-server.com" port="443">
<ssl />
</target>
</serviceProxy>
I have an interceptor (let's call it MyAwesomeInterceptor). What I need to do is add a GET parameter to the backend request call. However, this is not a static content thing. In my interceptor I am looking for a specific header and based on a lookup of that header value is the value I would like the get parameter to be.
Let's look at it this way:
MyHeader : bob
I need get parameter mygetparm = red
so the final call will be something like backend-server.com...?mygetparm = red
MyHeader: fred
I need get parameter mygetparm = blue
so the final call will be something like backend-server.com...?mygetparm = blue
MyAwesomeInterceptor I already have working to handle the headers. There is a much more complicated logic in this Interceptor than I explained here. But I simplified it to illustrate the thing that I need help with. If I can just find a way to dynamically add a get parameter and I'm home free.
Any hints on how I would do this?
- Damian