Hi Pete,
If you're on a Windows machine, a quick and dirty way to do that sort
of thing is to use autoit to click through the password screen, save
the web page, and then call a rebol script to parse the page for the
IP. Autoit is a great automation tool:
http://autoitscript.com
If you're just trying to get the IP addresses, why not just use this
Rebol code:
Rebol []
parse read
http://whatismyip.com [
thru <title> copy my-ip to </title>]
parse my-ip [
thru "-" copy stripped-ip to end]
alert to-string rejoin [
"External: " trim/all stripped-ip " "
"Internal: " read join dns:// read dns://]
I actually have a script that I run on my own webserver that returns
the IP, but whatismyip.com seems reliable. Hope that helps :)
--- In
Rebol_New@yahoogroups.com, Pete Wason <codevark@...> wrote:
>
> Hi,
>
> I'm trying to write a little script to access the admin pages
embedded in my
> router and parse out my current WAN IP.. but I can't figure out how
to get past
> the password dialog.. has anyone (here) done or seen this done
anywhere?
>
> As a test, I tried something like:
>
> statushtm: read/custom
http://192.168.1.1/Status.htm [post
> "username=username&password=password"]
>
> but the problem is I don't really know 1. what the actual variables
are called,
> and 2. whether this would even work if I did know. (It didn't work.)
>
> TIA!
>
> --------------------------------------------------------------------
----
> Pete Wason Hy Noom Publications codevark@... 508.865.5414
>