Article View: borland.public.cppbuilder.internet.web
Article #1083Re: How to show the Headers (OnBeforeNavigate2)
From: Remy Lebeau (TeamB)
Date: Tue, 04 Oct 2005 15:43
Date: Tue, 04 Oct 2005 15:43
29 lines
1916 bytes
1916 bytes
"Enrique" <enridp@yahoo.com.ar> wrote in message
news:43424b44@newsgroups.borland.com...
> If I put my own Headers in the Navigate method, then I can
> see it in in the OnBeforeNavigate event (only "MY" header...):
Of course, since those Headers are available before the navigation occurs,
and the event is giving you one last chance to edit them before they are
actually sent.
> TVariant Headers = {"Referer: " + Referer + "\n\r"};
You need to use "\r\n" instead of "\n\r", and get rid of the brackets:
.
TVariant Headers = "Referer: " + Referer + "\r\n";
> CppWebBrowser1->Navigate(WideString(Edit1->Text), TNoParam(), NULL, NULL,
> &Headers);
Use TNoParam() instead of NULL, and use Navigate2() instead of Navigate().
> I don't know, the TCppWebBrowser does not send it's "own" headers?
Yes, it does. But they are not generated until the navigation is actually
occuring.
Gambit
Technical Details
Message-ID:
<4342a305$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!feed5.newsreader.com!newsreader.com!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<43424801@newsgroups.borland.com> <43424b44@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: feeec,f1e443378e29aebd X-Google-Attributes: gidfeeec,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> Newsgroups: borland.public.cppbuilder.internet.web References: <43424801@newsgroups.borland.com> <43424b44@newsgroups.borland.com> Subject: Re: How to show the Headers (OnBeforeNavigate2) Date: Tue, 4 Oct 2005 08:43:42 -0700 Lines: 31 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 NNTP-Posting-Host: 68.69.17.41 Message-ID: <4342a305$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1128440581 68.69.17.41 (4 Oct 2005 08:43:01 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!feed5.newsreader.com!newsreader.com!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail