Jump to content

Recommended Posts

Posted (edited)

Hi, is there a proper solution to the change in behaviour Microsoft did to IE after a certain update?

Where it now ignores/blocks URLS that have username:password@ because of possible fake URLs... *sigh*

Looks messy, but will a registry (current user) check, read, if not already set then add entries for iexplore.exe and explorer.exe with 0 then after downloading done, delete these registry keys?

Has anyone done this already? Or is there a new better method that works without needing a workaround?

I'm doing an automated download of many items from within a script, don't want to have to launch an IE and automate going to the URL, entering username and password in a popup and pressing enter...

Update:

Ah ha! Someone has done a workaround code for this.

http://www.autoitscript.com/forum/index.php?showtopic=116332&st=0&p=811812&#entry811812

#include <IE.au3>

; Internet Explorer does not support user names and passwords in Web site addresses (HTTP or HTTPS URLs)
; http://support.microsoft.com/kb/834489/EN-US/
OnAutoItExitRegister("_Del_IE_RegKey")
RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_HTTP_USERNAME_PASSWORD_DISABLE", "iexplore.exe", "REG_DWORD", 0)

$oIE = _IECreate("http://USERNAME:PASSWORD@website.com/protected_dir/index.html", 0, 1, 1)

_IENavigate ($oIE, "http://website.com/protected_dir/different_page.html") ; credentials only necessary for first call

Func _Del_IE_RegKey()
    RegDelete("HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_HTTP_USERNAME_PASSWORD_DISABLE", "iexplore.exe")
EndFunc   ;==>_Del_IE_RegKey

Although... if the user has already set this behaviour.. then the script will remove it, might upset them a bit, needs a Read/Check first.

Question still stands, is this the only way around it? (Should be mentioned in the help file by now!).

Update:

Actually, even this doesn't seem to work :-(

Update:

Ok, does work, it was my additional code that did a RegRead first to decide what to do or not.

Although, download and progress still isn't working, nor is the cancel.

Edited by AJStevens
  • 3 months later...
Posted (edited)

I was wondering the same thing. Anybody got a better work around than the registry hack? I was able to get this to work once, but now it throws an error in line 316 of ie.au3:

$o_object.navigate($s_Url)

Note: I'm actually trying to download a protected file using Inetget, but figured I'd try it this way, since the other way wasn't working because of IE's new security setting.

Edited by WorknMan
Posted (edited)

I was wondering the same thing. Anybody got a better work around than the registry hack? I was able to get this to work once, but now it throws an error in line 316 of ie.au3:

$o_object.navigate($s_Url)

Note: I'm actually trying to download a protected file using Inetget, but figured I'd try it this way, since the other way wasn't working because of IE's new security setting.

FYI: Answering my own post. I just downloaded wget and run that when I need to fetch a file. If you don't mind the DOS window popping up, it works fine :graduated:

Edited by WorknMan

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...