<br clear="all"><div>Hi,</div><div><br></div><div>I am using sendRedirect to redirect to target url.</div><div><br></div><div>Redirection works perfectly for html page but when I try to redirect to asp page it don&#39;t works.</div>

<div><br></div><div>html page: <a href="https://wasspwin-test.testorg.biz/hello_world.html" target="_blank">https://wasspwin-test.testorg.biz/hello_world.html</a></div><div>Asp page:<a href="https://wasspwin-test.testorg.biz/all.asp" target="_blank">https://wasspwin-test.testorg.biz/all.asp</a></div>

<div><br></div><div><div>long sendRedirect(const char* url) {</div><div>        HTTPResponse::sendRedirect(url);</div><div>        string hdr=string(&quot;Location: &quot;) + url + &quot;\r\n&quot;</div><div>            &quot;Expires: Wed, 01 Jan 1997 12:00:00 GMT\r\n&quot;</div>

<div>            &quot;Cache-Control: max-age=0\r\n&quot;;</div><div>        for (multimap&lt;string,string&gt;::const_iterator i = m_headers.begin(); i != m_headers.end(); ++i)</div><div>            hdr += i-&gt;first + &quot;: &quot; + i-&gt;second + &quot;\r\n&quot;;</div>

<div>        hdr += &quot;\r\n&quot;;</div><div>        m_pfc-&gt;ServerSupportFunction(m_pfc, SF_REQ_SEND_RESPONSE_HEADER, &quot;302 Please Wait&quot;, (ULONG_PTR)hdr.c_str(), 0);</div><div>        static const char* redmsg=&quot;&lt;HTML&gt;&lt;BODY&gt;Redirecting...&lt;/BODY&gt;&lt;/HTML&gt;&quot;;</div>

<div>        DWORD resplen=strlen(redmsg);</div><div>        m_pfc-&gt;WriteClient(m_pfc, (LPVOID)redmsg, &amp;resplen, 0);</div><div>        return SF_STATUS_REQ_FINISHED;</div><div>    }</div></div><div><br></div><div>
----------------------------------------------------------------------------------------</div>
<div>also stf.setcookie do not work. so I used pfc-&gt;AddResponseHeaders(pfc, const_cast&lt;char*&gt;(str.c_str()), 0);</div><div><br></div><div><div> if ( !bCookieExists )</div><div>        {</div><div>            res = stf.getServiceProvider().doExport(stf);</div>

<div><br></div><div>            //Create WSL cookie </div><div>            string str = &quot;Set-Cookie: WSL-external=&quot;;</div><div>            str +=  cookiehandler.CreateWSLCookie(&amp;stf);</div><div>            str += &quot;; path=/;\r\n&quot;;</div>

<div><br></div><div>            pfc-&gt;AddResponseHeaders(pfc, const_cast&lt;char*&gt;(str.c_str()), 0);</div><div>            stf.sendRedirect(stf.getRequestURL());</div><div>            if (res.first) return res.second;</div>

<div>            //END </div><div>           </div><div>        }</div></div>-- <br>Thanks &amp; Regards,<br>Maneesh<br><br><br>