G
Gnarlodious
I'm trying to get my WAN address from the DSL modem (on localnet):
curl http://172.16.0.254/
which returns this string:
<HTML><HEAD><META HTTP-EQUIV="Content-Type" CONTENT="text/html;
charset=iso-8859-1"><META HTTP-EQUIV="expires" CONTENT="0"><META
HTTP-EQUIV="Cache-Control" CONTENT="no-cache"><META HTTP-EQUIV="Pragma"
CONTENT="no-cache"></HEAD> <SCRIPT Language="JavaScript">
location.href="http://172.16.0.254/index.html" </SCRIPT><BODY
BGCOLOR="#ffffff"> Redirecting...</BODY> </HTML>
I guess curl doesn't run the Javascript that fetches the WAN address. Is
there a shell command that simulates the browser request so the Javascript
page will be sent?
Or better yet, can the Javascript be run directly from a shell command? I
can't even figure out where the script is on the modem.
Thanks for any clues.
-- Gnarlie
http://Gnarlodious.com/
curl http://172.16.0.254/
which returns this string:
<HTML><HEAD><META HTTP-EQUIV="Content-Type" CONTENT="text/html;
charset=iso-8859-1"><META HTTP-EQUIV="expires" CONTENT="0"><META
HTTP-EQUIV="Cache-Control" CONTENT="no-cache"><META HTTP-EQUIV="Pragma"
CONTENT="no-cache"></HEAD> <SCRIPT Language="JavaScript">
location.href="http://172.16.0.254/index.html" </SCRIPT><BODY
BGCOLOR="#ffffff"> Redirecting...</BODY> </HTML>
I guess curl doesn't run the Javascript that fetches the WAN address. Is
there a shell command that simulates the browser request so the Javascript
page will be sent?
Or better yet, can the Javascript be run directly from a shell command? I
can't even figure out where the script is on the modem.
Thanks for any clues.
-- Gnarlie
http://Gnarlodious.com/