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 I get an empty string. I expected to see 'localhost' since the effective URL has local host in the host portion of the URL. I haven't tried to print the host header. I'll try that next. Dk > On May 27, 2016, at 8:30 AM, Alan Carroll > <solidwallofc...@yahoo-inc.com.INVALID> wrote: > > 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 Server > > > I also recommend the "--verbose" option so you can see what curl is actually > sending. > > Additionally you could try some of the example CPP API plugins, at least one > of which does a similar print and see what results you get from that.