Mantain information between request and response

Asked by Luis Felipe Domínguez Vega

Hello, I'm creating a module in eCAP for Squid that get metric about the bandwith usage group by user, url. But the problem is that a request is separated of a response, and in the response i can get the URI.
In every request i generate a UUID to identify that connection, but i want that the response get this UUID too, so how i can get this.

Question information

Language:
English Edit question
Status:
Expired
For:
eCAP Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:

This question was reopened

Revision history for this message
Alex Rousskov (rousskov) said :
#1

Alex Rousskov suggests this article as an answer to your question:
FAQ #2117: “How to pass information from REQMOD to RESPMOD?”.

Revision history for this message
Luis Felipe Domínguez Vega (luis.dominguez) said :
#2

Thanks.... RTFM to me gggg

Revision history for this message
Luis Felipe Domínguez Vega (luis.dominguez) said :
#3

Thanks Alex Rousskov, that solved my question.

Revision history for this message
Luis Felipe Domínguez Vega (luis.dominguez) said :
#4

Well now i was remplement the options and visitEachOption, but i not see a mode to obtain that value, because with:

hostx->option(libecap::metaSubscriberId).toString()

always returns "". This is coded on my XAction constructor implementation....

Revision history for this message
Alex Rousskov (rousskov) said :
#5

I can nominate three suspects:

1. Your REQMOD eCAP service is not _setting_ the option (correctly).
2. You are not telling your host application to pass X-Subscriber-ID header from one eCAP transaction to another.
3. Your host application is buggy.

You have not provided enough information to distinguish these three cases.

Revision history for this message
Launchpad Janitor (janitor) said :
#6

This question was expired because it remained in the 'Needs information' state without activity for the last 15 days.