🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Download web page as source text

#1557
From: Hans Galema
Date: Fri, 10 Sep 2004 09:24
15 lines
1514 bytes
LarryJ wrote:
> I am using the Net Master component NMHTTP1 to get a web page. I can not
> figure how to copy the web page source into a TRichEdit. I did search the
> old newsgroup posts but only find example of saving to a file on the hard
> drive. 

In the borland demo example you can see how it goes:

Assuming the URL in in Edit1.

	NMHTTP1->InputFileMode=FALSE;
	NMHTTP1->Get (WideString(Edit1->Text ) );
	Memo1->Text = NMHTTP1->Body;

Hans.
Technical Details
Message-ID: <4141722f$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!fr.ip.ndsoftware.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <414008e5@newsgroups.borland.com> <41401985$1@newsgroups.borland.com> <4140e24b@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: feeec,b38b86f436803567
X-Google-Attributes: gidfeeec,public
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Fri, 10 Sep 2004 11:24:45 +0200
From: Hans Galema <dontusethis@dontusethis.nl>
User-Agent: Mozilla Thunderbird 0.7 (Windows/20040616)
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.internet.web
Subject: Re: Download web page as source text
References: <414008e5@newsgroups.borland.com> <41401985$1@newsgroups.borland.com> <4140e24b@newsgroups.borland.com>
In-Reply-To: <4140e24b@newsgroups.borland.com>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 129.125.201.248
Message-ID: <4141722f$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1094808111 129.125.201.248 (10 Sep 2004 02:21:51 -0700)
Lines: 15
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!fr.ip.ndsoftware.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail