Quantcast
Channel: All Forums
Viewing all articles
Browse latest Browse all 27852

Issues with IIS modules

$
0
0

I have posted somewhat identical query earlier, but have not got any reply and hence posting again.

In  ISAPI filter we do

char  redirStatus[100] = "302 redirect";

m_context->ServerSupportFunction( m_context, SF_REQ_SEND_RESPONSE_HEADER,    &redirStatus, str, (DWORD)NULL ); where str is somewhat like "Location:http://<mysite>/Loginpage?REASON=-1\r\n\r\n"

What is the equivalent of the same in IIS modules? I am using request level module and uses native C++

Following I have tried

pHttpContext->GetResponse()->Redirect(res,TRUE,TRUE);  , where res is "http://<mysite>/Loginpage?REASON=-1"

The URL gets redirected to the "res" value. But I am getting a "page not found" error. (Infact there is no LoginPage and the content of the page is created as part of the response (by calling WriteClient)

Why such a behavior was not present with ISAPI filter? How can I avoid the "page not found error" which I am getting with the modules?

Regards,

George

 


Viewing all articles
Browse latest Browse all 27852

Trending Articles