Hi Manish,

1. With a transformation plugin you could 'print' the full response --
but where do you want to print it?

2. There is no HTML parsing inside TrafficServer. TS does not care
about content; it proxies/caches *anything* as long as it's served
over HTTP/HTTPS.

To solve your problem, you would need to develop a transformation
plugin 
(http://trafficserver.apache.org/docs/v2/sdk/HTTPTransformationPlugins.html)
and do some simple string parsing on the buffer.

There are a few plugin examples available to get you started at:
  
http://svn.apache.org/repos/asf/trafficserver/traffic/trunk/example/null-transform/
  
http://svn.apache.org/repos/asf/trafficserver/traffic/trunk/example/bnull-transform/
  
http://svn.apache.org/repos/asf/trafficserver/traffic/trunk/example/append-transform/

Regards,
--Eric

On Sun, Nov 28, 2010 at 9:05 PM, Manish Pandey <manis...@gmail.com> wrote:
> Hi folks,
>
> I am developing a trafficserver plugin, and would like to find out
> 1. How can I print a origin server response sent to the trafficserver, e.g.,
> the html document with embedded javascript etc.
> 2. Also, how can I detect specific strings in the response to do response
> filtering? Is there any html parser that is available
>   in TS that I can use for this?
>
> Any pointers will be appreciated.
>
> Thanks,
> Manish
>

Reply via email to