How do I skip the processing of a response?

Asked by James H on 2009-04-10

The eCAP website says: that the proxy software "gets back an adapted message or a "not interested" response".

I only want to process HTML pages, so I don't want to incur the performance hit of collecting the virgin body for large binary and sending this virgin body as adapted content.

I know I can check the type of resource through the Content-Type header, but how do I send back this "not interested" response? Maybe using the same vbDiscard that we talked about in one of my previous messages? Where should I call (in what Xaction method - maybe in the start method?) vbDiscard? Should I do anything special after sending a vbDiscard?

Thanks,

James

Question information

Language:
English Edit question
Status:
Solved
For:
eCAP Edit question
Assignee:
No assignee Edit question
Solved by:
James H
Solved:
2009-04-11
Last query:
2009-04-11
Last reply:
2009-04-10
Alex Rousskov (rousskov) said : #1

If you are not interested in receiving the virgin message body and not interested in producing an adapted message, then you need to call useVirgin() and nothing else. Calling that method terminates the adaptation transaction.

James H (jules-verne) said : #2

Thanks