Re: atscppapi question

2016-05-27 Thread Dk Jack
Alan, I have web-server behind ats. I was trying print various request attributes in my plugin. curl -v showed that it's sending the correct headers. I even collected tcpdump of the exchange and I see the complete URL being sent. The host header has the correct info. When I use the getHost API

Re: atscppapi question

2016-05-27 Thread Alan Carroll
curl --proxy localhost:8080 http://trafficserver.apache.org Thank you, helpful mail program.

Re: atscppapi question

2016-05-27 Thread Alan Carroll
I'm not sure what you're trying to do with that curl command. ATS is a proxy which means it has no content, it expects to forward any request on to an origin server. What origin server are you trying to reach via ATS? Normally I would do something like curl --proxy localhost:8080 Apache Traffic

atscppapi question

2016-05-26 Thread Dk Jack
Hi, I am using atscppapi in my plugin. I send a curl request as follows to ATS: curl 'http://localhost:8080/abcdef?a=1&b=2' In my plugin code, in handleReadRequestHeadersPreRemap function, I am printing the following: logInfo("effective-url: %s", txn.getEffectiveUrl().c_str()); ClientReques

Re: atscppapi question

2016-03-10 Thread Sudheer Vinukonda
Not really sure..perhaps, you may try turning on debug (tags: http, url_remap) and check the logs to get more clues. Thanks, Sudheer On Thursday, March 10, 2016, 7:13 PM, Dk Jack wrote: Sudheer,Any other suggestions I can try? Thanks. On Wed, Mar 9, 2016 at 1:41 PM, Dk Jack wrote: There i

Re: atscppapi question

2016-03-10 Thread Dk Jack
Sudheer, Any other suggestions I can try? Thanks. On Wed, Mar 9, 2016 at 1:41 PM, Dk Jack wrote: > There is no remap rule, since this is internally generated > traffic TSSkipRemappingSet is set. > > > On Wed, Mar 9, 2016 at 1:02 PM, Sudheer Vinukonda < > sudhe...@yahoo-inc.com.invalid> wrote:

Re: atscppapi question

2016-03-09 Thread Dk Jack
There is no remap rule, since this is internally generated traffic TSSkipRemappingSet is set. On Wed, Mar 9, 2016 at 1:02 PM, Sudheer Vinukonda < sudhe...@yahoo-inc.com.invalid> wrote: > Can you check your remap rule? Perhaps, you may need to add trailing / in > the source URL in the remap rule.

Re: atscppapi question

2016-03-09 Thread Sudheer Vinukonda
Can you check your remap rule? Perhaps, you may need to add trailing / in the source URL in the remap rule. Thanks, Sudheer On Wednesday, March 9, 2016 12:43 PM, Dk Jack wrote: Hi, I am using atscppapi in my plugin. Specifically, I am using AsyncHttpFetch api. When I use the AsyncHttpFe

atscppapi question

2016-03-09 Thread Dk Jack
Hi, I am using atscppapi in my plugin. Specifically, I am using AsyncHttpFetch api. When I use the AsyncHttpFetch with a regular url say like ' http://www.foo.com:/' it works. However, if I use the fetch api with a url that includes query args i.e. ' http://www.foo.com:/?name=jdoe' the requ