I am using TS 4.2.3 as a reverse proxy. I want to terminate a transaction
(generate a specific response status and error page) after reading some of
the request body. To do this, it seems I need to
handle TS_EVENT_HTTP_SEND_REQUEST_HDR. When handling this, however, I can
get the correct error response/status sent to the client, but cannot seem
to prevent the request headers being sent to the origin server if I
return TS_EVENT_HTTP_CONTINUE. Returning an error instead results in an
internal error of 500 and I cannot seem to get my custom response
status/error page.

Is there a way to read of the request body (at least part - for example
check file data is the type that is expected)  and still prevent the
request headers/data from being sent to the origin server?

Cheers!
-B

--
Brian Rectanus

Reply via email to