Log into Netgear WGT624 - how to authenticate?

I have a router at 192.168.0.1.

I want to programmatically long into it, whic huses http authentication with the fun little msgbox that pops up.

How would I go about that?
LVL 32
DrDamnitAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

PaulHewsCommented:
Using the webbrowser object, it's as simple as:

wb.Navigate "http://username:password@192.168.1.1"

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
DrDamnitAuthor Commented:
Well, that is putting the username in, but not the password.
PaulHewsCommented:
Interesting... works for my Linksys.
Your Guide to Achieving IT Business Success

The IT Service Excellence Tool Kit has best practices to keep your clients happy and business booming. Inside, you’ll find everything you need to increase client satisfaction and retention, become more competitive, and increase your overall success.

DrDamnitAuthor Commented:
Found this on DevShed:

fyi:
since IE 6 (maybe there is a patch for 5.5), direct login from url, i.e.
http://usernameassword@domain
is NOT supported for security reasons (it should give you an invalid syntax error, you can find this info in the knowledge base in MS' website) .
Surely, you can still use this feature in Mozilla

so, you'd better use other ways to login.

Is there a way around this? Can I use a preivous version of the dll?

What version of IE do you have?
PaulHewsCommented:
I have IE6.  I am using the webbrowser component rather than an instance of Internet Explorer... Obviously the webbrowser control handles things a little differently than an instance of IE.

For example, this:
Dim IE As Object
Set IE = CreateObject("InternetExplorer.Application")
IE.Visible = True
IE.Navigate "http://username:password@192.168.1.1"

Gives me "the page cannot be displayed" error.

To add the webbrowser to your project, from the projects menu, open the components menu item and select "Microsoft Internet Controls"  Drag one onto your form, name it wb, and then run the code I posted in the first comment.
nffvrxqgrcfqvvcCommented:
I have to agree with PaulHews, using the webbroser control worked for me also.
Webbrowser1.Navigate2 "http://username:password@192.168.1.1"
PaulHewsCommented:
Make sure you've got the ":" separating the username and password.  You won't get anything in the password field if you don't.
DrDamnitAuthor Commented:
Always helps when you type the password correctly.....;-)
PaulHewsCommented:
:) That usually helps, yes.
nffvrxqgrcfqvvcCommented:
This is another way if you dont want to use the webbrowser control

Private Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long)

Private Sub Form_Load()
Set objShell = CreateObject("Shell.Application")
objShell.Open "http://192.168.0.1"
Sleep 1000
SendKeys "user"
Sleep 10
SendKeys "{TAB}"
Sleep 10
SendKeys "pass"
Sleep 10
SendKeys "{ENTER}"
Sleep 10
DoEvents
Set objShell = Nothing

End Sub
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.