Solved

Retrieving Web Pages in Delphi7

Posted on 2004-10-04
2
524 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
Comment Utility
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
Comment Utility
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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
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…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

772 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now