httpheaders.h
Steve Quirk
squirk at home.com
Thu, 15 Jun 2000 13:24:39 -0400 (EDT)
Have a look at http://msdn.microsoft.com/library/psdk/iisref/isre504l.htm
In particular, there's a note at the bottom:
"The lpszVariableName can be used to retrieve a specific request
(client) header by using the HTTP_headername value."
Which uses the example of "accept" should be "HTTP_accept".
You can do two things
- modify getHeader() to prefix "HTTP_" to the key
- modify httpheaders.h to prefix "HTTP_" to the key
- modify copyHeaders() to use "ALL_RAW" and get all the headers as the
server recieved them (my preference).
Ok - three things. Let us know what works.
Steve
On Thu, 15 Jun 2000, Brian Wotring wrote:
>
> >Could you show your modifications? It *should* work.
>
> in the initialization of httpheaders.h:
>
> static const char * http_headers[] = {
>
> "accept",
> "accept-encoding",
> ... my custom headers...
> "allow",
> "authorization",
>
> ... remaining headers...
>
> #if defined(WAI)
> NULL
> };
>
>
> I am using IIS and am using the ISAPI adaptor. When I use the CGI adaptor,
> every single header I send gets through without any modifications to the
> adaptor. The ISAPI adaptor, though, doesn't let any of my custom headers
> through. In fact, even some of the already existing headers listed above (
> e.g. Accept: ) doesn't come through when sent.
>
> I'm obviously doing something wrong.
>
> >> I've added a few custom headers I expect to receive in httpheaders.h yet
> >> they do not show up when I print out the headers dictionary. I have
> >> recompiled the isapi.dll.
> >>
> >> Any suggestions?
>
>
> | Brian Wotring ( brian@fortnocs.com )
> | Fort Nocs, Inc.
> | PGP Key ID: 0x9674763D
>