I am trying to write a simple Download Manager for Internet Explorer using the 
IDownloadManager interface as described in MSDN.

http://msdn.microsoft.com/library/default.asp?url=/workshop/browser/ext/reference/ifaces/idownloadmanager/download.asp

STDMETHODIMP CDownloadManager::Download(IMoniker* pmk,
        IBindCtx* pbc,
        DWORD dwBindVerb,
        LONG grfBINDF,
        BINDINFO* pBindInfo,
        LPCOLESTR pszHeaders,
        LPCOLESTR pszRedir,
        UINT uiCP)
{
...
// Get URL
pmk->GetDisplayName( pbc, NULL, &pszW );
...
}

I am able to get the URL of the file and then use InternetSesion to download the file. 
A problem arises when the file is being sent from sites such as Hotmail. The URL 
contains extra information similar to the following.

http://64.4.22.250/cgi-bin/getmsg/test.doc?curmbox=F143938599&a=9028e9ed348aeb1e2152cc3450e09d65&msg=MSG1074019584.26&start=306925&len=33024&mimepart=5&disk=64.4.22.68_d1453&login=cord02&domain=hotmail%2ecom&_lang=EN&country=US

Does anyone know of a way to connect to the server and download the file when the URL 
contains the extra information?

--Scott




Reply via email to