Adapted response logging as NONE/307
I am facing some difficulty with access.log file (host is squid 3.3.12) entry when the reqFilter adapter is returning a new response (aimed to redirect to a predifned url if matches some condition) , formed inside the start method. The access log is logging the transaction as log type NONE/307 rather than TCP_MISS/307.
Please find below the code I am using to form the response inside the reqFilter .
if(some condition){
libecap::shared_ptr < libecap::Message > adapted =libecap:
Must(adapted != 0);
libecap::StatusLine &statusLine =dynamic_
statusLine.
statusLine.
adapted-
// add a custom header
static const libecap::Name name("Location");
string redirectUrl;
// code to form the redirect url
const libecap:
adapted-
hostx->
return;
}
Is there any way to make sure that the squid access log file logs the transaction with log type TCP_MISS/307?
Thanks in Advance,
John
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- eCAP Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask John Jacob for more information if necessary.