Solved

Retrieving Web Pages in Delphi7

Posted on 2004-10-04
2
529 Views
Last Modified: 2010-04-04
I use TnmHTTP component in Delphi6 for retriving pages from www.
How I can do it in Delphi7 ?
It seems there is no TnmHTTP and other FastNet components in Delphi7.
0
Comment
Question by:Subbotin
  • 2
2 Comments
 
LVL 12

Expert Comment

by:Ivanov_G
ID: 12224199
but there is Indy. It has excellent component TidHTTP. You can use it.
0
 
LVL 12

Accepted Solution

by:
Ivanov_G earned 200 total points
ID: 12224211
uses idHTTP;

procedure TForm1.Button1Click(Sender: TObject);
var
  tmp_idHTTP    : TidHTTP;
begin
  tmp_idHTTP := TidHTTP.Create(Self);
  try
    tmp_idHTTP.Get('http://www.google.com');
    ShowMessage(tmp_idHTTP.ResponseText);
  finally
    tmp_idHTTP.Free;
  end;
end;
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question