[python-win32] [pywin32-bugs] ISAPI Set-Cookie Probs

Mark Hammond mhammond at skippinet.com.au
Sun Mar 30 08:49:21 CEST 2008

Oops - forgot to "reply all":


The problem is that win32service needs a later platform SDK - try changing
the line in setup.py from:


        ("win32service", "advapi32 oleaut32 user32", True, 0x0500),




        ("win32service", "advapi32 oleaut32 user32", True, 0x0501),


And it should be skipped.  You might need to do it to pythonservice.exe too.
Or just install the Vista SDK.




From: python-win32-bounces at python.org
[mailto:python-win32-bounces at python.org] On Behalf Of Kevin Patterson
Sent: Sunday, 30 March 2008 3:23 PM
To: Tom Wells; Python-Win32 List
Subject: Re: [python-win32] [pywin32-bugs] ISAPI Set-Cookie Probs


I also received this error message. I backed up to tag "b209" and everything
compiled o.k. Is this error below a known issue?


On Mon, Feb 25, 2008 at 11:36 AM, Tom Wells <drshade at gmail.com> wrote:

Just tried to run a build, and getting the following errors:
C:\temp\pywin32>python setup.py -q build
Building pywin32
Skipping win32cred WINDOWS.H with version 0x501 is required, but only
version 0x500 is installed.
win32\src\win32servicemodule.cpp(2675) : error C2065:
'SERVICE_CONTROL_PRESHUTDOWN' : undeclared identifier
win32\src\win32servicemodule.cpp(2733) : error C2065:
'SERVICE_ACCEPT_PRESHUTDOWN' : undeclared identifier
error: command '"C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\bin\cl.exe"' failed with exit status 2

I have vs2003 installed (for python 2.5.1), plus just downloaded and
installed the latest platform sdk from
-A93E-40C0EC4F68E5&displaylang=en#filelist> &displaylang=en#filelist).

Any ideas? I'm purely after the ISAPI bits.



On Mon, Feb 25, 2008 at 4:28 PM, Tom Wells <drshade at gmail.com> wrote:

Mark, Hi

A test build would be great - I just sync'd CVS and saw your changes and
about to download platform SDK etc to compile the newest version, but i'm
sure you can probably get me something sooner! I will however get the
sources anyways, as it's a good reference plus I may feel inclined to finish
off some of your TBD's (such as the SF_NOTIFY_SEND_RESPONSE notification,
which should be very easy as it takes exactly the same notificationtype as
SF_NOTIFY_PREPROC_HEADERS according to ISAPI documentation).

Thanks for the support so far - really appreciate it! 

Please let me know once you have a build available, I am running python
2.5.1 (32 bit), but would also require an amd64 build if possible?



On Mon, Feb 25, 2008 at 3:50 PM, Mark Hammond <mhammond at skippinet.com.au>

> Actually there is no such fc.SetHeader() function ...

Yep - it was PREPROC_HEADERS I was referring to.

> SendResponseHeaders() not working is odd, and maybe i'm just
misunderstanding it's use

Sadly, there is a layer of indirection here I inherited from the original
author which isn't necessarily intuitive.  SendResponseHeaders() is used by
an extension and which as the docs mention (or at least do in CVS - its
likely they do not in your copy), "calls ServerSupportFunction with
HSE_REQ_SEND_RESPONSE_HEADER_EX" - which you will find takes 3 params -
response, complete_headers, keep_alive, where response is the "200 OK"
string, complete_headers is a string with \r\n terminators, and keep_alive
is a bool (which, best I can tell, has no effect on anything!)

I have added HTTP_FILTER_CONTEXT AddResponseHeaders() to CVS though - let me
know if you would like a build to test (and let me know your Python version)
- and that goes for anyone else too - build 211 gets closer by the day (just
get Roger to stop fixing lots of pythonwin bugs <wink>) so I'll point anyone
who asks at test builds...





python-win32 mailing list
python-win32 at python.org




-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/python-win32/attachments/20080330/25cf7c41/attachment.htm 

More information about the python-win32 mailing list