Hi,

I'm writing a plugin the mangles the url path and demangles it at 2 different 
stages in traffic server.  I want to mangle the url request before traffic 
server checks to see if the object is in the cache and then demangle the 
request before it sends the request to the origin server.  The demangle must 
happen after the TS_HTTP_CACHE_LOOKUP_COMPLETE_HOOK so that the mangled url 
path is used for the cache key at the 'lock URL n cache' point shown in the 
state diagram.

The first part is working properly using the TS_HTTP_READ_REQUEST_HDR_HOOK, it 
mangles the url path correctly.

If I try to demangle the url path BEFORE it is sent to the origin server by 
using the TS_HTTP_SEND_REQUEST_HDR_HOOK it is demangling it after the request 
is sent.  I see this by in the traffic.out log during debug and also see the 
request at the origin server.  The log shows the 'Proxy's Request'  appear 
before the request is demangled and sent to the origin server.

If I use the TS_HTTP_CACHE_LOOKUP_COMPLETE_HOOK then the url path is properly 
demangled before it is sent to the origin server, but I need to mangle the url 
path at the 'lock URL in cache' (from the state diagram) after the 
TS_HTTP_CACHE_LOOKUP_COMPLETE_HOOK.

Any comments or suggestions are greatly appreciated,
Thanks,
Bill

Reply via email to