BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

TNMHTTP *HTTP->Get result save in a text file

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (VCL Components Usage)
View previous topic :: View next topic  
Author Message
Juergen Langer
Guest





PostPosted: Thu Jan 29, 2004 12:20 pm    Post subject: TNMHTTP *HTTP->Get result save in a text file Reply with quote



Hi,

how can i save the result from TNMHTTP *HTTP->Get, see below, in a text file

Sample:

TNMHTTP *HTTP;
url = "http://www.........";
HTTP->Get(url);
....
....

Thanks
Juergen


Back to top
Hans Galema
Guest





PostPosted: Thu Jan 29, 2004 12:41 pm    Post subject: Re: TNMHTTP *HTTP->Get result save in a text file Reply with quote



Juergen Langer wrote:

Quote:
how can i save the result from TNMHTTP *HTTP->Get, see below, in a text file

Sample:

TNMHTTP *HTTP;
url = "http://www.........";

NMHTTP1->InputFileMode=false; // this you should have already

Quote:
HTTP->Get(url);

And then:

Memo1->Text = HTTP->Body;
Memo1->SaveToFile ( FileName );


But the way to directly save it to file is

AnsiString FileName = ......

NMHTTP1->InputFileMode = true;

NMHTTP1->Body = FileName;

NMHTTP1->Get (WideString( URL ) );

// done.

You can read all this in the help for TNMHTTP too ..

Hans.

Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (VCL Components Usage) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.