🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.socket
Article #4620

Re: cppwebbrowser catch clicks

#4620
From: roger
Date: Wed, 19 Jan 2005 09:59
27 lines
1812 bytes
The reason i want to catch the links is to cancel the browse , parse the
request,and request data via an http component that i can add additional
commands such as auth and set a custom http_user_agent..
But actually looking at what you have suggested it seems like that maybe
close to the answer.

Thanks

"Hans Galema" <notused@notused.nl> wrote in message
news:41ee2e44$1@newsgroups.borland.com...
> roger wrote:
> > Is there anyway to catch the clicks of the cppwebbrowser displayed links
to
> > modify the requests prior to navigating to the links..
>
> Yes. Use the following event:
>
> void __fastcall TForm1::CppWebBrowser1BeforeNavigate2(TObject *Sender,
>        LPDISPATCH pDisp, TVariant *URL, TVariant *Flags,
>        TVariant *TargetFrameName, TVariant *PostData, TVariant *Headers,
>        TOLEBOOL *Cancel)
> {
>    if ( URL does not satisfy )
> Cancel = true;
> }
>
> Hans.
Technical Details
Message-ID: <41ee2f60$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!gatel-ffm!gatel-ffm!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <41edeebd$1@newsgroups.borland.com> <41ee2e44$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,6ff30a997b5c7dea
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "roger" <rogersmail@ntlworld.com>
Newsgroups: borland.public.cppbuilder.internet.socket
References: <41edeebd$1@newsgroups.borland.com> <41ee2e44$1@newsgroups.borland.com>
Subject: Re: cppwebbrowser catch clicks
Date: Wed, 19 Jan 2005 09:59:08 -0000
Lines: 29
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2720.3000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2739.300
NNTP-Posting-Host: 81.103.69.122
Message-ID: <41ee2f60$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1106128736 81.103.69.122 (19 Jan 2005 01:58:56 -0800)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!gatel-ffm!gatel-ffm!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail