Autor Beitrag
CK_CK
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 140

Win 2000, Win XP Prof
Delphi 2006 Enterprise
BeitragVerfasst: Fr 19.08.05 21:30 
Hallo Delphi-Fans,
ich hab' ein kleines (großes) Problem:
Es gibt hier ja schon ein paar Threads zu dem Thema, aber in keinem steht genau das, was ich suche...

Ich möchte gerne eine WhoIs-Seite "anzapfen"...

Ich möchte folgende Seite benutzen:
www.iks-jena.de/cgi-bin/whois
(Die IP wird via POST über tragen...)
Wie kann ich diese Seite in ein Memo bekommen?
(1. POST, 2. Übertragen...)

Hoffentlich kann mir jemand helfen *hoff*

Vielen Dank schonmal für's durchlesen dieses Threads,
CK_CK


Moderiert von user profile iconChristian S.: Topic aus VCL (Visual Component Library) verschoben am Di 23.08.2005 um 11:31


Zuletzt bearbeitet von CK_CK am Sa 20.08.05 13:28, insgesamt 1-mal bearbeitet
Harry M.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 754

Win 2000, XP
D2005
BeitragVerfasst: Sa 20.08.05 09:12 
Du kennst doch in aller Regel die HTML-Seite. So kannst Du auch den Text dieser empfangen und darin nach dem Ergebnis suchen, welches Du brauchst.

_________________
Gruß Harry
Et spes me per dies sine te ducat et amor me ferat, si dolor spem tollit.
CK_CK Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 140

Win 2000, Win XP Prof
Delphi 2006 Enterprise
BeitragVerfasst: Sa 20.08.05 12:12 
Hi!
Ich hatte noch nicht das vergnügen mit Internet-Komponenten...
Köntest du mir ein Code-Beispiel geben?

(Nur für's empfangen der Seite, z.B. in ein Memo...)

CK_CK
CK_CK Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 140

Win 2000, Win XP Prof
Delphi 2006 Enterprise
BeitragVerfasst: Sa 20.08.05 13:29 
Themen-Titel geändert, *hoffnung auf neue Antworten* :oops:

CK_CK
retnyg
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2754

SNES, GB, GBA, CPC, A500, 486/66, P4/3.0HT: NintendOS, AmigaOS, DoS
Delphi 5, Delphi 7
BeitragVerfasst: Sa 20.08.05 14:11 
user profile iconCK_CK hat folgendes geschrieben:
Hi!
Ich hatte noch nicht das vergnügen mit Internet-Komponenten...
Köntest du mir ein Code-Beispiel geben?

(Nur für's empfangen der Seite, z.B. in ein Memo...)

CK_CK

Suche in: Delphi-Forum, Delphi-Library URLDOWNLOADTOFILE

_________________
es gibt leute, die sind genetisch nicht zum programmieren geschaffen.
in der regel haben diese leute die regel...
Harry M.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 754

Win 2000, XP
D2005
BeitragVerfasst: Sa 20.08.05 21:04 
Ich wollte es schon beim Ersten Posting mit dazu schreiben.... Habs aber dann doch gelassen... Hätte ich es nur gemacht :lol: Also IP's hinter einem Router ermittele ich so:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
function GetInetClietIP: String;
var
  IdHttp: TIdHttp;
  I : integer;
  StringList: TStringList;
begin
  RESULT := '';
  IdHttp := TIdHttp.Create(nil);
  StringList := TStringList.Create;
  Try
    StringList.Add(IdHttp.get('http://checkip.dyndns.org'));
    for I := 0 to Length(StringList.Text) do begin
      if StringList.Text[I] in [#46#48..#57then RESULT := RESULT+StringList.Text[I];
      end;
  finally
    StringList.Free;
    IdHTTP.Free;
    end;
end;

_________________
Gruß Harry
Et spes me per dies sine te ducat et amor me ferat, si dolor spem tollit.
Harry M.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 754

Win 2000, XP
D2005
BeitragVerfasst: Mi 24.08.05 18:30 
Hey...

Ich habe was gefunden, das könnte für Dich von Interesse sein
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
function Abfrage(eing1,eing2:String): Integer;
var suchstr,gogfen: String;
    n: Integer;
begin
try
suchstr := 'von ungefähr <b>';
gogfen := form1.htp.Get('http://www.google.de/search?&q="'+eing1+'"+"'+eing2+'"');
flag_red := false;
flag_sch := false;
  if pos('<p><p><br>Es wurden keine Standard-Webseiten gefunden, in',gogfen) <> 0 then flag_red := true;
  if pos('<br><br>Es wurden keine mit Ihrer Suchanfrage -',gogfen) <> 0 then flag_red := true;
  if pos('<p><font color=#cc0000 class=p>Meinten Sie: </font>',gogfen) <> 0 then flag_sch := true;
  n := pos(suchstr,gogfen)+16;
  if n <> 0 then
      begin
     gogfen := copy(gogfen,n,length(gogfen)-n);
     n := pos('<',gogfen)-1;
     gogfen := copy(gogfen,1,n);
     repeat
     if pos('.',gogfen) > 0 then delete(gogfen,pos('.',gogfen),1);
     until pos('.',gogfen) = 0;
     result := StrToInt(copy(gogfen,1,n));


      end else result := 0;
     except
     result := 0;
     end;
end;

Der Code ist aus diesem lustigen Tool: mitglied.lycos.de/tibusch/prog

_________________
Gruß Harry
Et spes me per dies sine te ducat et amor me ferat, si dolor spem tollit.
CodeRed
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 45

Win 2000
D7 Pers
BeitragVerfasst: Mi 24.08.05 19:05 
also das mit dem post hab ich schon mal hier im forum veröffentlich. ich such dir schnell den link.
verwende dazu den TWebbrowser
www.delphi-forum.de/...32849&highlight=

und das mit dem quelltext kannst du hier nachlesen. nimm den post von toms, der sollte funktionieren.
www.delphipraxis.net/topic39083.html