Re: Intercept Plugin

2016-03-15 Thread Dk Jack
op Cycle > Detected) for 'http://...' > 20160314.19h07m03s RESPONSE: sent 127.0.0.1 status 502 (Server Hangup) for > 'http://' > > don't know what to do at this point... > > On Mon, Mar 14, 2016 at 7:42 AM, Alan Carroll < > solidwallofc...@yahoo-inc.com.invalid

RE: Intercept Plugin

2016-03-15 Thread Luca Rea
edì 14 marzo 2016 20:15 To: dev@trafficserver.apache.org; Alan Carroll Subject: Re: Intercept Plugin Hi Alan, I tried to add a remap rule like this: regex_map http://(.*)/(.*) http://$1/$2 I still get the following error: 20160314.19h04m03s RESPONSE: sent 127.0.0.1 status 404 (Not Found on Ac

Re: Intercept Plugin

2016-03-14 Thread Alan Carroll
r (2) disabling > remap_required in records.config. This is not specific to the intercept > plugin. If you don't want (2) you can always add an identity remap to > remap.config and map the URL to itself. >

Re: Intercept Plugin

2016-03-14 Thread Dk Jack
, Alan Carroll < > solidwallofc...@yahoo-inc.com.invalid> wrote: > >> Traffic Server requires either (1) a remap rule or (2) disabling >> remap_required in records.config. This is not specific to the intercept >> plugin. If you don't want (2) you can always add an identity remap to >> remap.config and map the URL to itself. >> > >

Re: Intercept Plugin

2016-03-14 Thread Dk Jack
know what to do at this point... On Mon, Mar 14, 2016 at 7:42 AM, Alan Carroll < solidwallofc...@yahoo-inc.com.invalid> wrote: > Traffic Server requires either (1) a remap rule or (2) disabling > remap_required in records.config. This is not specific to the intercept > plugin. If

Re: Intercept Plugin

2016-03-14 Thread Alan Carroll
Traffic Server requires either (1) a remap rule or (2) disabling remap_required in records.config. This is not specific to the intercept plugin. If you don't want (2) you can always add an identity remap to remap.config and map the URL to itself.

Re: Intercept Plugin

2016-03-13 Thread Dk Jack
ked. I was running into the same issue with intercept plugin. I even tried skipping remapping by calling TSSkipRemappingSet in readRequestHeaders hook, that just gives me a different error... 20160313.22h51m01s RESPONSE: sent 127.0.0.1 status 400 (Multi-Hop Cycle Detected) for 'http://'

Re: Intercept Plugin

2016-03-13 Thread Brian Geffon
13, 2016 at 6:22 PM, Brian Geffon wrote: > > > Take a look at the example, you can set the body, status code, headers, > > basically anything you want. The only reason you might want to use an > > intercept plugin is it you wanted to stream a response. > > > > Br

Re: Intercept Plugin

2016-03-13 Thread Dk Jack
ok. I'll give it a try and get back. Thanks. On Sun, Mar 13, 2016 at 6:22 PM, Brian Geffon wrote: > Take a look at the example, you can set the body, status code, headers, > basically anything you want. The only reason you might want to use an > intercept plugin is it you want

Re: Intercept Plugin

2016-03-13 Thread Brian Geffon
Take a look at the example, you can set the body, status code, headers, basically anything you want. The only reason you might want to use an intercept plugin is it you wanted to stream a response. Brian On Monday, March 14, 2016, Dk Jack wrote: > custom error message plugin doesn't

Re: Intercept Plugin

2016-03-13 Thread Dk Jack
27;s much easier, > > Brian > > On Monday, March 14, 2016, Dk Jack wrote: > > > Hi, > > I am using atscppapi intercept Plugin. Does it still require a remap rule > > if I am using SERVER_INTERCEPT type. I just want to respond with a custom > > response if I see a specific url. Thanks. > > > > Dk. > > >

Re: Intercept Plugin

2016-03-13 Thread Brian Geffon
I would suggest looking at the custom error response plugin in the examples folder, it will give you same result and it's much easier, Brian On Monday, March 14, 2016, Dk Jack wrote: > Hi, > I am using atscppapi intercept Plugin. Does it still require a remap rule >

Intercept Plugin

2016-03-13 Thread Dk Jack
Hi, I am using atscppapi intercept Plugin. Does it still require a remap rule if I am using SERVER_INTERCEPT type. I just want to respond with a custom response if I see a specific url. Thanks. Dk.