urlmon

how to use URLDownloadToFile on a IE8 box (no crash would be nice)?

Hi, I'got a C++ app (similar to this one) that downloads files using URLDownloadToFile method (defined in urlmon.dll). Until IE8, it was possible to abort a download by returning E_ABORT in the progress callback. On a system on which IE8 has been installed, doing so crashes the program, with an error report generated. Do anyone know ...

How can the Accept-Encoding header be changed in IE with Url Monikers or other method?

I'm developing a browser plugin and server component system that streams content with a custom encoding type. Now I would like to be able to detect on the server side whether the client can handle the special encoding, and would like to keep it consistent with the usual way things work with HTTP, so from the browser plugin I would like t...

URLDownloadToFile and Authentication

Hi I'm working on some old ATL OCX, that is used as "download manager". It downloads files using URLDownloadToFile API. Previously, it was hosted as ActiveX on web page so in case the server required authentication it was done by IE. Now it is part of executable, so it should take care of authentication. Let say user provided username...

Using <urlmon.h> and URLDownloadToFile to get HTTPS Web Resources

All, I am making a programming that will be able to download content from various websites on and off of my local network.To do this, I must use the libs and c++ for compatibility reasons. So far I have been able to successfully access a normal HTTP page, and an HTTPS page on the web. Example: HRESULT res = URLDownloadToFile( NULL, ...

URLOpenPullStream and gzip content download - need uncompressed data

I am using URLOpenPullStream along with a IBindStatusCallback and IHttpNegotiate callbacks to handle the negotiate, status, and data messages. Problem that I have is when the content is gzip (e.g. Content-Encoding: gzip). The data that I am receiving via OnDataAvailable is compressed. I need the uncompressed data. I am using BINDF_...