I am developing ISAPI Extension DLL on VC++ (Win XP).
I am working with IIS Version 5.1.
I found in the MSDN example application Afxpool.exe - this project
demonstrates mechanism of creating a thread pool for an MFC - based ISAPI
Extension.
In the file ThreadPool.cpp used SendData(...), this function send back a
CString to the Client using the WriteClient(...).
In the function SendData(...) instead of WriteClient(...) I want to use
ServerSupportFunction(...) that will send me back page (1.htm).
I use function ServerSupportFunction(...) in the SendData():
DWORD dwSize;
char szSTR[1000];
strcpy(szSTR,"1.htm");
dwSize=lstrlen(szSTR);
pECB->ServerSupportFunction( pECB->ConnID,HSE_REQ_SEND_URL,szSTR,&dwSize,NULL)
the ISAPI DLL sent me back the following page:
Document Moved
HTTP/1.1 302 Object Moved Location:1.htm Server:Microsoft-IIS/5.1
Content-Type:text/html
Connection:close Content-Lenght:128
Object Moved
This document may be found here
When I click on "here" I receive my page 1.htm.
How I can use in SendData (...)
{...
ServerSupportFunction(...) function
....
}
in order to receive directly page 1.htm?
I want tread to send me back page 1(1.htm).
Pls help me to solve this problem?
Thank you in advance,
Pola
>> Stay informed about: Please Help! Creating Thread Pool for ISAPI Extentions