Is it possible to adapt a CONNECT response?

Asked by joseph jose on 2014-07-21

I am trying to log a custom header to squid access log from the response adapter. But when request is of CONNECT type, no call is coming inside response adapter. Hence no logging is being performed. Is there any way to trigger the response adapter for CONNECT request ?
My RESPMODE config is as given below

# Response mode configurations
ecap_service eRespmod respmod_precache 0 ecap://e-cap.org/ecap/sn/services/respmod
adaptation_service_set respFilter eRespmod
adaptation_access respFilter allow all

Question information

Language:
English Edit question
Status:
Answered
For:
eCAP Edit question
Assignee:
No assignee Edit question
Last query:
2014-07-21
Last reply:
2014-07-21
Alex Rousskov (rousskov) said : #1

To adapt a CONNECT response, the host application may have to support a post-cache RESPMOD vectoring point and/or have special CONNECT response adaptation code. The exact requirements depend on the host application architecture, but a simple (and probably typical) CONNECT implementation results in CONNECT requests _not_ reaching the pre-cache RESPMOD vectoring point that most proxies use for response adaptation.

For example, Squid does not currently have any code to adapt CONNECT responses.

Can you help with this problem?

Provide an answer of your own, or ask joseph jose for more information if necessary.

To post a message you must log in.