How to reject a request

Asked by Lucian Bazoi on 2011-01-31

Hi Alex,

     Can you please show me how to reject a request using ecap adapter v0.1.0(how to return an HTTP response message as the adapted message) in a REQMOD context and redirect the browser of the requestor to a page containing a message?


Question information

English Edit question
eCAP Edit question
No assignee Edit question
Last query:
Last reply:
Alex Rousskov (rousskov) said : #1

To reject a message using eCAP v0.1.0, the adapter can call the blockVirgin() method of the host transaction.

Similarly to useVirgin(), this should be the last method you call. The adapter cannot use blockVirgin() after calling useAdapted().

Alex Rousskov (rousskov) said : #2

If your host application is Squid, use the deny_info option in squid.conf to customize the block message or convert it into a redirect.

Can you help with this problem?

Provide an answer of your own, or ask Lucian Bazoi for more information if necessary.

To post a message you must log in.