示例:
此代码段发送一个字符串的内容到名为ISAPI的DLL 中,DLL在服务器中为MOOSEBOY。此示例对WriteString的调用只有一个,但可以使用多个来发送成块数据。
CString strData = "Some very long data to be POSTed here!";
pServer = sess.GetHttpConnection("mooseboy");
pFile = pServer->OpenRequest(CHttpConnection::HTTP_VERB_POST, "/isapi.dll?");
pFile->SendRequestEx(strData.GetLength());
pFile->WriteString(strData);
pFile->EndRequest();