Newsgroups : Borland : borland.public.delphi.internet.winsock : 2007 Dec : Re: WebBrowser hook for actual retrieval?
| Subject: | Re: WebBrowser hook for actual retrieval? |
| Posted by: | "Kevin Killion" (kev..@shsmedia.com) |
| Date: | Mon, 24 Dec 2007 10:23:03 |
In article <476f056d$1@newsgroups.borland.com>,
"Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> wrote:
> "Kevin Killion" <kevin@shsmedia.com> wrote in message
> news:kevin-F179A9.10354423122007@newsgroups.codegear.com...
>
> > When a link is clicked and a new page is requested, normally all
> > the needed files (html, jpg, etc) are retrieved. I'd like to intercept
> > each of those retrievals, grab each file from somewhere else in my
> > own code, and then return it back to WebBrowser.
>
> There are plenty of events available (OnBeforeNavigate, OnNavigateComplete,
> OnDownloadBegin), but there is no way to replace a file with your own once
> the browser tries to download it. In the OnBeforeNavigate event, you can
> change the URL for a file, though.
>
>
> Gambit
Hmmm, that might work. In changing the URL, can I replace the HTTP
request with an FTP request to a secure (password-protected) FTP
location? (Thanks!)
Kevin