Forum Discussion

reen_sc_140631's avatar
reen_sc_140631
Icon for Nimbostratus rankNimbostratus
Jun 30, 2015

Header response for request

Hello Folks,

 

is there any possibility to add an header (value) in the http response which is using by the client for the next http request? If the response is from an specific backend system I need to modify the HTTP::path before the proxypass iRule is handle or analyse the path.

 

many thanks

 

4 Replies

  • Arie's avatar
    Arie
    Icon for Altostratus rankAltostratus

    Depends how much control you have over the client. If the ADC is the client you will have full control. Even if you're using it as a proxy you can use return headers (may need a helper VIP for this).

     

    Can you be more specific?

     

  • Thanks for the answers.

     

    Maybe I should illustrate it on an example.

     

    Client request is: https://www.example.de/external/

     

    ProxyPass is rewrite: /external/ := / /pool_backend

     

    In some cases the backend system is using absolute path or someting else and the next client request is without the /external/ path (it will replaced by the absolute pathes). So the ProxyPass can't handle these requests because there are no matches in the DataGroup of /external/ anymore.

     

    My idea was to modify some or all http responses from the pool_backend system(s) to identify all new requests on it. In some cases I am able to identify it on the Referer(field) in the request header but not on all.

     

    Thanks

     

    • boneyard's avatar
      boneyard
      Icon for MVP rankMVP
      as mentioned, a cookie might be able to help you out. on the other side, just make sure your backend application send the correct paths make it even easier.