Forum Discussion

Lucas_Kaczmarsk's avatar
Lucas_Kaczmarsk
Icon for Nimbostratus rankNimbostratus
Apr 25, 2018

Passing headers down to pool members

Hello All,

 

I'm trying create several irules that allow the following headers captured and passed through to the pool members:

 

  • Origin
  • Referrer
  • content-length
  • user-agent

I did a X-Forwarded-For and Proto and they work OK, but I'm unsure about the above ones. Does anyone know how to do this?

 

Thanks, Lucas

 

1 Reply

  • taunan_89710's avatar
    taunan_89710
    Historic F5 Account

    Lucas,

     

    Those request headers should normally not get modified by the BIGIP proxy unless there are other rules instructing it to do so. The only exception could be content-length if we are switching to a chunked body on the server side. Do you have an example of a client-side and server-side request where these are being modified through the proxy?

     

    If we are just trying to log these headers this may be a simpler question to answer, though I would advise we rely on HSL instead of local logging unless this is purely for debug/deployment and is temporary.