IIS 7 and Above
Communicate from HTTPModule to php application
Last post Jan 01, 2013 05:11 AM by London
Dec 28, 2012 04:32 AM|asasamihai|LINK
is there any possibilty to send information from an HTTPModule to a PHP application hosted in II7?
without using a file as intermediate.
I managed to add or edit values to the HttpRequest.ServerVariables collection in the HTTPModule I've created (e.g. OnBeginRequest)
but this is not seen from PHP ($_SERVER, $_REQUEST).
Thank you in advance,
Jan 01, 2013 05:11 AM|London|LINK
The server variables you added were stored in httpcontext which is not available in FastCGI application PHP. A native module or ISAPI filter might able to change the raw request header. With a httpmodule, I think you can only pass the information via URL
or query string.