Scripting around the lack of user:password@domain url functionality in jscript/IE

Posted by Idiomatic on Super User See other posts from Super User or by Idiomatic
Published on 2010-04-24T05:41:07Z Indexed on 2010/04/24 5:43 UTC
Read the original article Hit count: 220

I currently have a jscript that runs a php script on a server for me, dead simple. But... I want to be atleast somewhat secure so I setup a login. Now if I use the regular user:password@domain system it won't work (IE decided it was a security issue). And if I let IE just remember the password then it pops up a security message confirming my login every time (which kills the point of the button).

So I need a way to make the security message go away.

I could lower security settings, which tbh I am fine with but nothing seems to make it fuck off (there might be some registry setting to change).

Find a fix for jscript that will let me use a password in the url. There used to be a regedit that worked for older systems which allowed IE to use url passwords (not working on my 64bit windows7 setup) though I doubt that'd have helped jscript anyways (since it outright crashes).

Use an app other than IE. Inwhich case I'm not sure how to go about it, I want it to be responsive and invisible so IE was a good choice. It is near instant.

Use XMLHttpRequest instead of IE directly? May even be faster but I've no idea if it'd help or just have the same error.

Use a completely different approach. Maybe some app that can script website browsing.

var args = {};

var objIEA = new ActiveXObject("InternetExplorer.Application");
if( WScript.Arguments.Item(0) == "pause" ){
    objIEA.navigate("http://domain/index.html?pause");
}
if( WScript.Arguments.Item(0) == "next" ){
    objIEA.navigate("http://domain/index.html?next");
}
objIEA.visible = false;
while(objIEA.readyState != 4) {}
objIEA.quit();

© Super User or respective owner

Related posts about windows-7

Related posts about xmlhttprequest