Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
platform
active.directory
adsi
adsi.iis-admin
base
com_ole
complus_mts
component_svcs
database
directx
gdi
graphics_mm
internet.client
internet.server
internet.server.isapi-dev
localization
mapi
messaging
msi
mslayerforunicode
multimedia
networking
networking.ipv6
sdk_install
security
shell
telephony.tapi_2
telephony.tapi_3
telephony.tsp
telephony.wte
tools
ui
ui_shell
win_base_svcs
win16
  
 
date: 29 May 2006 07:19:58 -0700,    group: microsoft.public.platformsdk.internet.server.isapi-dev        back       


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

Re: Updating the Header in Wildcard Extension   
Looks like the application that get the http request does see the
changes in the header even though it cannot be seen later in the
filter/extension.

Gilad.
date: 30 May 2006 05:47:56 -0700   author:   gilad

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us