On 06/23/2011 10:45 AM, Chris Reynolds wrote:
Hi,

I have written a plugin that intercepts HTTP requests by using
TSHttpTxnIntercept and then reads the request and scans it. If it is
allowed then I open a connection to the server by using TSNetConnect
and send the request on.

Hmmm, what is the purpose of the the intercept? Are you using TSNetConnect() to connect to a non-HTTP protocol port? If not, why not use TSHttpConnect() ? Also, if the purpose of this plugin is to simply "allow" or "deny" requests to origin, you can do that much simpler than as an intercept plugin. The main reason to use intercept would be if you are crossing different protocol boundaries, or if you are implementing the "origin" side as a plugin.

-- leif

Reply via email to