"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 for a D-Link router? > > 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. Right, but is the document you are trying to get the ip from called status.htm? In another of your posts, you put: params = urllib.urlencode({'RC': '@D','ACCT' : "root",'PSWD' : "71:29:26",'URL': 'admin'}) ipurl = "http://" + iphost + "/cgi-bin/logi" urlfp = urllib.urlopen(ipurl, params) which looks like to me you are getting the ip address out of a document called: http://192.168.0.1/cgi-bin/logi ??? Todd W. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]