Modify

Opened 10 years ago

Closed 10 years ago

#3260 closed Bug (No Bug)

_IECreate cannot handle basic auth with domain included in username

Reported by: nathanoyler@… Owned by:
Milestone: Component: Standard UDFs
Version: 3.3.14.0 Severity: None
Keywords: _IECreate basic auth domain Cc:

Description

When using _IECreate to open a website that requires basic auth, the URL looks something like this:

http://username:password@www.website.com

However, if a domain name needs to be specified in the username, it looks like this:

https://username@domain:password@www.website.com

I'm assuming _IECreate is splitting the string on the @ and getting wonky. If you try to use that function to open a website, it just craps out with this output in the console:

"C:\Program Files (x86)\AutoIt3\Include\IE.au3" (272) : ==> The requested action with this object has failed.:
$oObject.navigate($sUrl)
$oObject^ ERROR
>Exit code: 1    Time: 0.3972

Attachments (0)

Change History (5)

comment:1 by Jos, 10 years ago

Does the url you use in the script actually work when used in your IE browser?
Please come to the forum and open a new topic for this before posting it as a bugreport.
It is much easier to have a dialog and confirm it is a bug.
Jos

comment:2 by mLipok, 10 years ago

I would also to know if this MSDN article:
https://support.microsoft.com/en-us/kb/834489

was readed before this thicket was posted by OP.
And whether this is the case.

btw.
You can also read this:
https://www.autoitscript.com/forum/topic/111411-basic-authentication-_iecreateinetget/

Last edited 10 years ago by mLipok (previous) (diff)

in reply to:  1 ; comment:3 by anonymous, 10 years ago

My apologies. I can submit in the forum, also. But to answer your question, yes, it works correctly from IE directly.

Replying to Jos:

Does the url you use in the script actually work when used in your IE browser?
Please come to the forum and open a new topic for this before posting it as a bugreport.
It is much easier to have a dialog and confirm it is a bug.
Jos

in reply to:  3 comment:4 by anonymous, 10 years ago

I take that back...it is an IE-specific issue. It works from Chrome, but IE cannot handle the URL, either. Given that, it's not exactly _IECreate at fault, and this ticket can be closed. Sorry for the false alarm!

Replying to anonymous:

My apologies. I can submit in the forum, also. But to answer your question, yes, it works correctly from IE directly.

Replying to Jos:

Does the url you use in the script actually work when used in your IE browser?
Please come to the forum and open a new topic for this before posting it as a bugreport.
It is much easier to have a dialog and confirm it is a bug.
Jos

comment:5 by mLipok, 10 years ago

Resolution: No Bug
Status: newclosed

Modify Ticket

Action
as closed The ticket will remain with no owner.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.