sorry.. i didnt knew if it was possbile.

I want to be able to send an IP to www.ripe.net , do the search and then to echo the result.

If the Ip is for ex: 123.456.789.123, then I will have to get the content of this page:

http://www.ripe.net/fcgi-bin/whois?form_...123.456.789.123


EDIT:
someone helped me to get a code that returns the content of the page, but it's the whole page. how do I parse it so that it returns only a few lines.. and not all the page?


EDIT:
example:
I have a code that retreives the full content of this page:
http://www.ripe.net/fcgi-bin/whois?form_...ext=81.81.81.81
Code:
on *:SOCKREAD:ripe: {
  :read
  sockread %in
  if (%in) { echo -s %in }
  if ($sockbr) { goto read }
}


that is the whole page.

how do I parse only what I need ( listed below from example IP 81.81.81.81):
Quote:

org: ORG-WTS1-RIPE
netname: IT-WIND-CST-20020410
descr: WIND Telecomunicazioni S.p.A.
descr: PROVIDER
country: IT
organisation: ORG-WTS1-RIPE
org-name: WIND Telecomunicazioni S.p.A.
org-type: LIR
address: WIND Telecomunicazioni S.p.A.
Via C.G. Viola 48 c.a.p.
00148 Rome
Italy


this is all the info I want from that page.

can anyone help?

Last edited by yetti; 23/12/06 05:25 PM.