Search squid archive

Replace an HTTP header depending upon the input value of header

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I have a use case where depending upon the value of a response header,
I need to replace it with difference values.
For eg. The HTTP header name is A with value B

Now if B=xyz, replace B with abc < header would become A: abc>
else if B= uvw replace B with def. < header would become A: def>

I have tried using reply_header_replace, but its not able to satisfy
this if-else requirement.
Had there been only a single replacement, then using
'reply_header_access A deny xyz' followed by 'reply_header_replace A
abc' would have worked.

Can i get some suggestions over how to solve this problem? Is using an
external acl the way to go or there is some simpler way to implement
the if-else over ACLs (AFAIK if-else statements work on predefined
macros)?

Thanks,
Abhay


[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux