Updating the Header in Wildcard Extension
Hi,
I want to update the header with no luck. I tried to update
ExecUrlInfo.pszChildHeaders with the old value + new one as listed.
When looking at the header in the SF_NOTIFY_LOG of the filter it is not
there. However, data that was added to the header in the
SF_NOTIFY_PREPROC_HEADERS using AddHeader is there and looks fine.
// Get Current Data
extControlBlock->GetServerVariable(
extControlBlock->ConnID, "ALL_RAW",
&httpParam,
&httpParamLen);
string newHeader;
newHeader = httpParam;
newHeader += "Key:Value\r\n";
ExecUrlInfo.pszUrl = NULL;
ExecUrlInfo.pszMethod = NULL;
ExecUrlInfo.pszChildHeaders = newHeader.c_str();
ExecUrlInfo.pUserInfo = NULL;
ExecUrlInfo.pEntity = NULL;
ExecUrlInfo.dwExecUrlFlags =
HSE_EXEC_URL_IGNORE_CURRENT_INTERCEPTOR;
if (extControlBlock->ServerSupportFunction(
extControlBlock->ConnID,
HSE_REQ_IO_COMPLETION,
HandleCompletion,
NULL,
NULL ) == FALSE )
{
// Err
}
else
{
if (extControlBlock->ServerSupportFunction(
extControlBlock->ConnID,
HSE_REQ_EXEC_URL,
&ExecUrlInfo,
NULL,
NULL ) == FALSE )
{
// Err
}
}
Thanks,
Gilad.
date: 29 May 2006 07:19:58 -0700
author: gilad