Thema: Delphi Tidhttp

Einzelnen Beitrag anzeigen

API

Registriert seit: 18. Apr 2004
637 Beiträge
 
#8

Re: Tidhttp

  Alt 9. Aug 2006, 10:21
Klaus, ich arbeite nicht mit HTTPS. (nicht dass ich wüsste)
nur mit TIdHTTP

Quelltext:
Delphi-Quellcode:
var
  IdHttp: TIdHTTP;
  ResponseText: string;
begin
  IdHttp := TIdHTTP.Create(nil);
  try
    IdHttp.HandleRedirects := True;
    IdHttp.Request.UserAgent := 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)';
    ResponseText := IdHttp.Get('http://www.google.de/search?ie=ISO-8859-1&q=Test');
    /...
  finally
    IdHttp.Free;
  end;
Biespiel zum Ausprobieren: http://www.delphipraxis.net/download.php?id=21314
  Mit Zitat antworten Zitat