🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.web
Article #839

Re: Intercept TCppWebBrowser

#839
From: Remy Lebeau (TeamB)
Date: Thu, 29 Dec 2005 21:35
19 lines
1767 bytes
"Metro" <metro9999@lycos.co.uk.nospam> wrote in message
news:43b43c62@newsgroups.borland.com...

> Would i be correct in thinking loading the html using clientsocket
> into a memo and loading the memo into tccpwebbrowser ?

You do not need to use a Memo.  Use a TMemoryStream instead.  You can use
TStreamAdapter to pass the TMemoryStream to the TCppWebBrowser's
IPersistStreamInit interface.  Search the newsgroup archives at
http://www.deja.com for examples.

And I would not suggest using TClientSocket.  HTTP is a complex protocol to
implement from scratch.  You should use an actual HTTP component, such as
the one found in Indy, ICS, Synapse, or any number of other third-party
implementation.  Or use the WinInet or WinHTTP API from Microsoft.


Gambit
Technical Details
Message-ID: <43b4560a@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!news-out.spamkiller.net!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <43b41563@newsgroups.borland.com> <43b432de$1@newsgroups.borland.com> <43b43c62@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: feeec,4f3d3993c9d99eb
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: <43b41563@newsgroups.borland.com> <43b432de$1@newsgroups.borland.com> <43b43c62@newsgroups.borland.com>
Subject: Re: Intercept TCppWebBrowser
Date: Thu, 29 Dec 2005 13:35:14 -0800
Lines: 21
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: <43b4560a@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1135891978 68.69.17.41 (29 Dec 2005 13:32:58 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!news-out.spamkiller.net!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail