Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old July 20th, 2005, 06:52 PM
James
Guest
 
Posts: n/a
Default Basic question - HELP!

I am looking to add the domain name into the login url to access
webmail via a link. Example:

location.href = "https://" + "domain_name%5C" + LOGINNAME + ":" +
password +
"@test.test1.com"

I am assuming the output should be:

domain_name\user_name:password@test.test1.com

Is this correct of should the %5c be outside the "" - "domain_name" +
%5c +
??

Not real familiar with scripting so any help is appreciated.

Thanks,

James
  #2  
Old July 20th, 2005, 06:52 PM
Jukka K. Korpela
Guest
 
Posts: n/a
Default Re: Basic question - HELP!

james.c.craig@comcast.net (James) wrote:
[color=blue]
> I am looking to add the domain name into the login url to access
> webmail via a link.[/color]

You really constructed a Subject line that most adequately reflects the
content of your message. More hints available at bargain price at
http://www.cs.tut.fi/~jkorpela/usenet/dont.html
[color=blue]
> location.href = "https://" + "domain_name%5C" + LOGINNAME + ":" +
> password +
> "@test.test1.com"[/color]

That's JavaScipt. Hint: JavaScript is not HTML. Nowhere near.
[color=blue]
> I am assuming[/color]

Stop assuming. RTFM.
[color=blue]
> the output should be:
>
> domain_name\user_name:password@test.test1.com[/color]

No, it shouldn't.

You might consider studying the URL syntax specifications, and would
learn that they _strongly_ advice against including passwords into
URLs, and then they _strongly_ say the same again. Besides, the syntax
with username:password was never part of approved http (or https) URL
syntax. Some browsers still decided to implement it.

But don't bother. Microsoft just decided to drop it for security
reasons. This was tragicomic, but at least it confirms the idea of not
putting a password into a URL.
[color=blue]
> Not real familiar with scripting[/color]

So don't do scripting (at least not here), mm'kay?

--
Yucca, http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html

 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles