none
The download files size >4GB cannot be downloaded on Windows 2008 Server Core RRS feed

  • Question

  • Environment: Windows 2008 Server Core (standard version with SP2)

    Download file size > 4GB (32bit size)  failed.  Error: CInternetSession::OpenURL (code=12153). Error:The supplied HTTP header is invalid

    we use the same code to get the file size < 4GB (32bit size) , it works fine.

    My question:  Is  there  a 4GB ((32bit size) ) download file size limitation in Windows 2008 Server Core (standard version with SP2)?  If no, how to resolve the problem?

    Code like below:

    *************************************************************

    try
    {
    // connection
    CInternetSession   sess ;
    sess.SetOption (INTERNET_OPTION_CONNECT_TIMEOUT, 30 * 1000) ;
    sess.SetOption (INTERNET_OPTION_CONNECT_BACKOFF, 1000) ;
    sess.SetOption (INTERNET_OPTION_CONNECT_RETRIES, 1) ;

    DWORD       dwFlag = INTERNET_FLAG_TRANSFER_BINARY|INTERNET_FLAG_DONT_CACHE|INTERNET_FLAG_RELOAD ;
    CHttpFile   * pF = (CHttpFile*)sess.OpenURL(pPara->strFileURL, 1, dwFlag); ASSERT(pF);
    ....
    }
    catch (CInternetException* pEx)
    {
    TCHAR szError[1024];
    pEx->GetErrorMessage(szError, 1024);
    dwRet = pEx->m_dwError;
    m_strLastErrorMessage.Format(_T("Cannot open the URL(%s) by calling CInternetSession::OpenURL (code=%d). Error:%s"), strURL, dwRet, szError);
    }

    *******************************************************************************************

    Thanks,

    Recky

    Monday, August 17, 2015 10:13 AM