|
Recent changes to this Home Page
Mechanical Engineering Department (College Server) Mechanical Engineering Department (authorized access only) Access ISAPI and CGI tests (ISAPI Filter DLL under development)
|
You may get a copy of my PGP public key here.
You may get a copy of my vCard here.
Access statistics for this server.
| Cgi test : METHOD="POST": (Displays the process environment. Environment variables are used to transfer CGI information) | |||
| ISAPI test : METHOD="POST": (Displays the information transferred to the ISAPI application) | |||
| ISAPI test : METHOD="GET": (Displays the information transferred to the ISAPI application) | |||
NETSCAPE USERS (Communicator/other versions?): Netscape may insist on offering
a download dialog for ISAPI DLLs, rather than performing the required FORM
action, GET or POST. Try the renamed version of ISAOB.DLL (ISAOB.ISA) below to
see the difference. This problem does not seem to occur however when the ISAPI
extension DLL is used within <IMG> tags, as for the hit counter for
this page:
<img ALT="Access counter" src="/scripts/counter.dll?9605071636"> times. And Efrain Carballo [ecarballo@cbomulti.com] adds: Well, guess what, I found out that forcing the extension to write the content type header makes the dll work under all the browsers (or at least Netscape Navigator, communicator, and Internet explorer). So, in HttpExtensionProc I call the following function before any other other writes to the client:
BOOL WriteHTMLHeader(EXTENSION_CONTROL_BLOCK *pECB)
{
DWORD dwSize;
TCHAR str[] = TEXT("Content-type: text/html\r\n");
dwSize = sizeof(str);
return pECB->ServerSupportFunction(pECB->ConnID,
HSE_REQ_SEND_RESPONSE_HEADER,
NULL,
&dwSize,
(LPDWORD) str);
}
And voila! it works! I guess ISAPI isn't really writing out the header as it promises and causes some less tolerant browsers to not recognise the return as a server response. But when you explicitly write the header things work out. Maybe you can post this on your site | |||
| ISAPI test : METHOD="POST": (Displays the information transferred to the ISAPI application) | |||
| ISAPI test : METHOD="GET": (Displays the information transferred to the ISAPI application) | |||
| Last modified: February 21, 2000 | Peter O'Neill <Peter.ONeill@ucd.ie> |