Request Satisfaction splash screen problem
So I am trying to show an error page that can redirect user to original request or do nothing (accept blocked state).
The problem are the following:
1) I tried to get URI in REQMOD but firstLine() is always NULL (followed #1576 for getting URI)
2) I then tried URI redirect in RESPMOD. I can see the URI but with problems.
2a) if I use blockVirgin() and deny_info, everything is great except I can't get clean original request URI. It's usually a bunch of weird stuff before and after the real URI. I am not sure what's going on (I tried http://
2b) if I use hostx.virgin(
I like 2a because it's simple but can't get proper original URI. I don't mind 2b but it's not working (tried making hostx = 0 so it's the last call doesn't make a difference). Also I am puzzled as why I can't handle any of this in the REQMOD (ie: at request time before hitting the server).
code for 2b:
Adapter:
libecap::Area uri;
typedef const libecap:
if (CLRLP requestLine = dynamic_
uri = requestLine->uri();
else
if (CLRLP requestLine = dynamic_
uri = requestLine->uri();
//do header checks here
libecap:
Must(x);
xhost = 0;
if(!Allowed())
{
//LRLP is non-const version of CLRLP
LRLP requestLine = dynamic_
}
sendingAb = opNever;
x->useVirgin();
}
Thanks
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 WorkingMan for more information if necessary.