Re: URLDownloadToFile with custom HTTP Headers??
- From: Dave Brown <key88sf@xxxxxxxxx>
- Date: Mon, 22 Dec 2008 11:00:14 -0800 (PST)
On Dec 22, 9:16 am, Dave Brown <key8...@xxxxxxxxx> wrote:
On Dec 22, 4:48 am, "Igor Tandetnik" <itandet...@xxxxxxxx> wrote:
"Dave Brown" <key8...@xxxxxxxxx> wrote in message
news:970bd17d-8e7e-4fa2-9844-db639eecc65a@xxxxxxxxxxxxxxxxxxxxxxxxxxxx
Is it possible to set some HTTP headers which are sent from
URLDownloadToFile?
Write a COM object implementing IBindStatusCallback, IServiceProvider
and IHttpNegotiate. Have IServiceProvider::QueryService return
IHttpNegotiate when queried for it. Pass IBindStatusCallback off this
object as the last parameter to URLDownloadToFile. Provide your headers
in IHttpNegotiate::BeginningTransaction.
--
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
Thanks Igor! Will try this now.- Hide quoted text -
- Show quoted text -
This works great. Note that IServiceProvider is not needed in this
case ( see
http://groups.google.com/group/microsoft.public.inetsdk.programming.webbrowser_ctl/browse_thread/thread/138a97474682e51a/a4e2049d40c5a677
).
.
- References:
- URLDownloadToFile with custom HTTP Headers??
- From: Dave Brown
- Re: URLDownloadToFile with custom HTTP Headers??
- From: Igor Tandetnik
- Re: URLDownloadToFile with custom HTTP Headers??
- From: Dave Brown
- URLDownloadToFile with custom HTTP Headers??
- Prev by Date: Re: URLDownloadToFile with custom HTTP Headers??
- Next by Date: InetSDK
- Previous by thread: Re: URLDownloadToFile with custom HTTP Headers??
- Next by thread: InetSDK
- Index(es):
Relevant Pages
|