Hi,
I am developing module (native C++ based) in place of ISAPI filter. In OnBeginRequest() flow I am doing a redirection to a different location
something as follows.
hr = m_Context->GetResponse()->Redirect(res,true,false);, where m_Context is IHttpContext* and res is the new URL which is of the formhttp://<mywebsite>/Display/LoginPage?REASON=-5.
I am expected to show this URL in the browser (happens only in one machine) and further do processing by picking the new redirected URL. However I am not getting the redirected URL when I query for
m_Context->GetServerVariable("URL",buffer,&len); from OnAuthenticateRequest().
In ISAPI filter , I think HttpFilterProc() with SF_NOTIFY_PREPROC_HEADERS is called again after redirection. How to handle the same in module (from which event) as OnBeginRequest(), is seen to be called just once at the beginning of the request.
Is something wrong with redirect call or should I be using some other function?
Regards,
George