Re: get external ip from D-Link router

2002-06-12 Thread drieux
On Tuesday, June 11, 2002, at 08:40 , bob ackerman wrote: [..] > this is what is failing. > when i try this POST from the shell command line, i get: > echo 'RC=@D&ACCT="root"&PSWD="71:29:26"&URL="admin"' | POST -u -U -s -S > -e -x 'http://192.168.0.1/cgi-bin/logi' [..] > LWP::UserAgent::request:

Re: get external ip from D-Link router

2002-06-11 Thread bob ackerman
On Tuesday, June 11, 2002, at 10:55 PM, Todd Wade wrote: > Right, but is the document you are trying to get the ip from called > status.htm? i have changed my strategy since then. the python posted to the /cgi- bin/logi file first to login. then called the status.htm to get data. again, i say,

Re: get external ip from D-Link router

2002-06-11 Thread Todd Wade
"Bob Ackerman" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > >> my $req = HTTP::Request->new(GET => 'http://192.168.0.1/status.htm'); > > > > The line above will work to fetch a document from a linksys BEFSR41 and > > the > > like. Are you sure thats right f

Re: get external ip from D-Link router

2002-06-10 Thread bob ackerman
On Monday, June 10, 2002, at 09:02 PM, drieux wrote: > > On Monday, June 10, 2002, at 07:29 , bob ackerman wrote: > >> >> note the ip was slightly different for linksys. it was 192.168.1.1. >> above is the ip i use to manually login. the html file is what the >> python code names to get the da

Re: get external ip from D-Link router

2002-06-10 Thread drieux
On Monday, June 10, 2002, at 07:29 , bob ackerman wrote: > > note the ip was slightly different for linksys. it was 192.168.1.1. > above is the ip i use to manually login. the html file is what the python > code names to get the data correctly. Silly question here - but could it be the case, a

Re: get external ip from D-Link router

2002-06-10 Thread bob ackerman
On Monday, June 10, 2002, at 09:48 PM, Todd Wade wrote: > > "Bob Ackerman" <[EMAIL PROTECTED]> wrote in message > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... >> > >> i can't quite figure out how to do this in perl. i have: >> use LWP::UserAgent; >> >> # Fetch the page >> $admin = ARGV[0]; #pas

Re: get external ip from D-Link router

2002-06-10 Thread bob ackerman
On Monday, June 10, 2002, at 06:30 PM, Geoffrey F. Green wrote: > On 6/10/02 8:55 PM, "bob ackerman" <[EMAIL PROTECTED]> wrote: > >> # Fetch the page >> $admin = ARGV[0];#password >> print $admin,"\n"; >> my $ua = LWP::UserAgent->new; >> my $req = HTTP::Request->new(GET => 'http://192.1

Re: get external ip from D-Link router

2002-06-10 Thread Todd Wade
"Bob Ackerman" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > i can't quite figure out how to do this in perl. i have: > use LWP::UserAgent; > > # Fetch the page > $admin = ARGV[0]; #password > print $admin,"\n"; > my $ua = LWP::UserAgent->new; > my $req =

Re: get external ip from D-Link router

2002-06-10 Thread Geoffrey F. Green
On 6/10/02 8:55 PM, "bob ackerman" <[EMAIL PROTECTED]> wrote: > # Fetch the page > $admin = ARGV[0];#password > print $admin,"\n"; > my $ua = LWP::UserAgent->new; > my $req = HTTP::Request->new(GET => 'http://192.168.0.1/status.htm'); > $req->authorization_basic('', $admin);#not w

Re: get external ip from D-Link router

2002-06-10 Thread drieux
On Monday, June 10, 2002, at 05:55 , bob ackerman wrote: > HTTP::Request > # Fetch the page > $admin = ARGV[0]; #password > print $admin,"\n"; > my $ua = LWP::UserAgent->new; > my $req = HTTP::Request->new(GET => 'http://192.168.0.1/status.htm'); > $req->authorization_basic('', $adm

Re: get external ip from D-Link router

2002-06-10 Thread bob ackerman
On Monday, June 10, 2002, at 05:26 PM, Todd Wade wrote: > Bob Ackerman wrote: > >> my box is behind a D-Link router 704. >> The router gets its ip from my isp using dhcp. >> anyone know how to get that external ip from the router? >> is any module designed to find your external ip when you are

Re: get external ip from D-Link router

2002-06-10 Thread Todd Wade
Bob Ackerman wrote: > my box is behind a D-Link router 704. > The router gets its ip from my isp using dhcp. > anyone know how to get that external ip from the router? > is any module designed to find your external ip when you are on a lan? > router is admined from a web page, so i guess it is p

Re: get external ip from D-Link router

2002-06-10 Thread Geoffrey F. Green
On 6/10/02 1:35 PM, "bob ackerman" <[EMAIL PROTECTED]> wrote: > my box is behind a D-Link router 704. > The router gets its ip from my isp using dhcp. > anyone know how to get that external ip from the router? > is any module designed to find your external ip when you are on a lan? > router is a

Re: get external ip from D-Link router

2002-06-10 Thread bob ackerman
On Monday, June 10, 2002, at 10:49 AM, drieux wrote: > > On Monday, June 10, 2002, at 10:35 , bob ackerman wrote: > >> my box is behind a D-Link router 704. >> The router gets its ip from my isp using dhcp. >> anyone know how to get that external ip from the router? > > I presume that your 'int

Re: get external ip from D-Link router

2002-06-10 Thread drieux
On Monday, June 10, 2002, at 10:35 , bob ackerman wrote: > my box is behind a D-Link router 704. > The router gets its ip from my isp using dhcp. > anyone know how to get that external ip from the router? I presume that your 'internal network' is an RFC1918 configuration? All of whom are routin

Re: get external ip from D-Link router

2002-06-10 Thread Kevin Meltzer
At home I do this with LWP on my Lynksys. Look at LWP::UserAgent and LWP::Simple for the fetching, and HTML::Parser for the HTML parsing (or just use a regular expression if you can). Cheers, Kevin On Mon, Jun 10, 2002 at 10:35:59AM -0700, bob ackerman ([EMAIL PROTECTED]) said something similar

get external ip from D-Link router

2002-06-10 Thread bob ackerman
my box is behind a D-Link router 704. The router gets its ip from my isp using dhcp. anyone know how to get that external ip from the router? is any module designed to find your external ip when you are on a lan? router is admined from a web page, so i guess it is possible to using LWP (or some