|
|
|
date: Tue, 4 Sep 2007 23:32:01 -0700,
group: microsoft.public.inetsdk.programming.urlmonikers
back
Re: URLDownloadToCacheFile https failure
"Ralf Berger" wrote in message
news:9837D5B8-DEC8-4669-81BE-1CF3501574E8@microsoft.com
> I'm having a problem with my ActiveX control when trying to download
> a file from a
> https tomcat server.
> The function URLDownloadToCacheFile returns -2146697208 (0x800c0008).
I've just tried this simple program - it works for me:
#include <windows.h>
#include <urlmon.h>
int main()
{
CoInitialize(0);
TCHAR file[MAX_PATH];
HRESULT hr = URLDownloadToCacheFile(0,
_T("https://www.mynfbonline.com/cashman/"),
file, MAX_PATH, 0, 0);
CoUninitialize();
return 0;
}
There must be something specific to the particular server you are
working with. Perhaps it's sending a Pragma: no-cache header or similar.
--
With best wishes,
Igor Tandetnik
With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925
date: Thu, 6 Sep 2007 08:12:01 -0400
author: Igor Tandetnik
Re: URLDownloadToCacheFile https failure
Igor,
Thanks for you quick reply. Can you imagine any additional reason for that
failure. Maybe some know problems with Apache/Tomcat systems?
Unfortunately I can not touch the system where the file is downloaded from...
Thanks,
- Ralf
"Igor Tandetnik" wrote:
> "Ralf Berger" wrote in message
> news:9837D5B8-DEC8-4669-81BE-1CF3501574E8@microsoft.com
> > I'm having a problem with my ActiveX control when trying to download
> > a file from a
> > https tomcat server.
> > The function URLDownloadToCacheFile returns -2146697208 (0x800c0008).
>
> I've just tried this simple program - it works for me:
>
> #include <windows.h>
> #include <urlmon.h>
>
> int main()
> {
> CoInitialize(0);
> TCHAR file[MAX_PATH];
> HRESULT hr = URLDownloadToCacheFile(0,
> _T("https://www.mynfbonline.com/cashman/"),
> file, MAX_PATH, 0, 0);
> CoUninitialize();
> return 0;
> }
>
> There must be something specific to the particular server you are
> working with. Perhaps it's sending a Pragma: no-cache header or similar.
> --
> With best wishes,
> Igor Tandetnik
>
> With sufficient thrust, pigs fly just fine. However, this is not
> necessarily a good idea. It is hard to be sure where they are going to
> land, and it could be dangerous sitting under them as they fly
> overhead. -- RFC 1925
>
>
>
date: Thu, 6 Sep 2007 05:32:01 -0700
author: Ralf Berger
|
|