Sign in to follow this  
Followers 0
McBaInN

Internet Explorer - Passing credentials through URL

2 posts in this topic

Hi All,

This is my first post to the forum and could not find the topic.  I'm currently trying to pass user credentials through the URL in I.E as follows "http://username:password@someplace.com",  but due to security updates Microsoft no longer allows this.  

I have already successfully passed credentials using Chrome and FireFox but also need to ensure the script I am running works with I.E for browser testing.

How can I pass the username and password automatically without putting them in the URL?  When I enter the standard URL the Authentication Required Box appears and i'd like to have this automatically filled so my tests can complete automatically.

Thanks,

McBaInN

 

Share this post


Link to post
Share on other sites



I did this for a test

#include <IE.au3>
OnAutoItExitRegister("_UnloadIeException")

_LoadIeException()
Local $oIE = _IECreate("http://Administrator:1@192.168.0.250/config", 0, 1)
_UnloadIeException()



Func _LoadIeException()
    RegWrite("HKEY_LOCAL_MACHINE\Software\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_HTTP_USERNAME_PASSWORD_DISABLE", "iExplore.exe", "REG_DWORD", "0")
EndFunc

Func _UnloadIeException()
    RegWrite("HKEY_LOCAL_MACHINE\Software\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_HTTP_USERNAME_PASSWORD_DISABLE", "iExplore.exe", "REG_DWORD", "1")
EndFunc

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0