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.