G
Guest
My web download program stopped working when IE7 beta 1-3 was installed.
Error when calling OpenRequest in CHttpConnection. The Error is Created by
ASSERT(hFile != NULL) in mehtod CInternetFile::CInternetFile.
My call
//pServer = session.GetHttpConnection(strServerName, nPort);
pServer = session.GetHttpConnection(strServerName, nPort,
pstrUserName, pstrPassword);
lpContent = szContent;
LogDebugInfo("ProcessURLEntry calling OpenRequest...");
pFile = pServer->OpenRequest(CHttpConnection::HTTP_VERB_GET,
strObject, pstrReferer, 1, &lpContent, NULL, dwHttpRequestFlags);
My data
CString strObject =â€myFileâ€
LPCTSTR pstrReferer = NULL;
lpContent = "text/html, image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
*/*";
DWORD dwHttpRequestFlags = INTERNET_FLAG_RELOAD;
Error when calling OpenRequest in CHttpConnection. The Error is Created by
ASSERT(hFile != NULL) in mehtod CInternetFile::CInternetFile.
My call
//pServer = session.GetHttpConnection(strServerName, nPort);
pServer = session.GetHttpConnection(strServerName, nPort,
pstrUserName, pstrPassword);
lpContent = szContent;
LogDebugInfo("ProcessURLEntry calling OpenRequest...");
pFile = pServer->OpenRequest(CHttpConnection::HTTP_VERB_GET,
strObject, pstrReferer, 1, &lpContent, NULL, dwHttpRequestFlags);
My data
CString strObject =â€myFileâ€
LPCTSTR pstrReferer = NULL;
lpContent = "text/html, image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
*/*";
DWORD dwHttpRequestFlags = INTERNET_FLAG_RELOAD;