473,387 Members | 1,541 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Include user ID and password in a link?

I've got a web cam that I'd like to access easily. The server needs a
user ID and password to log in.

Is there a way to Include user ID and password in a link?

--
Nigel M
Nov 15 '06 #1
6 36673
Hello,

Nigel Molesworth wrote:
I've got a web cam that I'd like to access easily. The server needs a
user ID and password to log in.

Is there a way to Include user ID and password in a link?
This depends on how the authentication works.
If it is HTTP authentication, you could try
<http://USERNAME:PA****@www.example.com/path/to/something>,
though support for this has been disabled in IE for a while.
If there is a HTML form where you have to insert the credentials and the
server-side code happends to support the GET method, you have to lookup the
names of the controls and use something like
<http://www.example.com/path/to/something?uname=USERNAME&pwd=PASSWORD>.

But it is probably easier to just use a browser with built-in password
management - don't know about the IE line, but every other browser I know
of has it.
HTH
--
Benjamin Niemann
Email: pink at odahoda dot de
WWW: http://pink.odahoda.de/
Nov 15 '06 #2
..oO(Benjamin Niemann)
>This depends on how the authentication works.
If it is HTTP authentication, you could try
<http://USERNAME:PA****@www.example.com/path/to/something>,
though support for this has been disabled in IE for a while.
It was not "disabled", they just fixed a bug. Username and PW are not
allowed in a HTTP URL.

Micha
Nov 15 '06 #3
Michael Fesser wrote:
.oO(Benjamin Niemann)
>>This depends on how the authentication works.
If it is HTTP authentication, you could try
<http://USERNAME:PA****@www.example.com/path/to/something>,
though support for this has been disabled in IE for a while.

It was not "disabled", they just fixed a bug. Username and PW are not
allowed in a HTTP URL.
Being more tolerant than a spec is not a bug - as long as the spec does not
enforce a specific error handling.
Adding extra features on top a spec might be a bad decision though. And it
was in this case, when phishers started to exploit it.

--
Benjamin Niemann
Email: pink at odahoda dot de
WWW: http://pink.odahoda.de/
Nov 15 '06 #4
Benjamin Niemann wrote:
Michael Fesser wrote:
>.oO(Benjamin Niemann)
>>This depends on how the authentication works.
If it is HTTP authentication, you could try
<http://USERNAME:PA****@www.example.com/path/to/something>,
though support for this has been disabled in IE for a while.
It was not "disabled", they just fixed a bug. Username and PW are not
allowed in a HTTP URL.

Being more tolerant than a spec is not a bug - as long as the spec does not
enforce a specific error handling.
A feature that the spec doesn't explicitly provide for is not a bug. A
feature that the spec proscribes is a bug if the implementation is
intended to be compliant.
Adding extra features on top a spec might be a bad decision though. And it
was in this case, when phishers started to exploit it.
Nov 15 '06 #5
Harlan Messinger wrote:
Benjamin Niemann wrote:
>Michael Fesser wrote:
>>.oO(Benjamin Niemann)

This depends on how the authentication works.
If it is HTTP authentication, you could try
<http://USERNAME:PA****@www.example.com/path/to/something>,
though support for this has been disabled in IE for a while.
It was not "disabled", they just fixed a bug. Username and PW are not
allowed in a HTTP URL.

Being more tolerant than a spec is not a bug - as long as the spec does
not enforce a specific error handling.

A feature that the spec doesn't explicitly provide for is not a bug. A
feature that the spec proscribes is a bug if the implementation is
intended to be compliant.
The spec does not say (AFAIK, have only check it briefly, perhaps there's
something I have forgotten, since I read it more thoroughly) what to do
when an app encounters a malformed URL. Thus any action, including "Look
for a USERNAME:PASSWD@ part, remove it from the 'wannabe-URL' and try
again" is _not_ proscibed by the spec. Formally this is part of the error
recovery.
--
Benjamin Niemann
Email: pink at odahoda dot de
WWW: http://pink.odahoda.de/
Nov 15 '06 #6
Benjamin Niemann wrote:
Harlan Messinger wrote:
>Benjamin Niemann wrote:
>>Michael Fesser wrote:

.oO(Benjamin Niemann)

This depends on how the authentication works.
If it is HTTP authentication, you could try
<http://USERNAME:PA****@www.example.com/path/to/something>,
though support for this has been disabled in IE for a while.
It was not "disabled", they just fixed a bug. Username and PW are not
allowed in a HTTP URL.
Being more tolerant than a spec is not a bug - as long as the spec does
not enforce a specific error handling.
A feature that the spec doesn't explicitly provide for is not a bug. A
feature that the spec proscribes is a bug if the implementation is
intended to be compliant.

The spec does not say (AFAIK, have only check it briefly, perhaps there's
something I have forgotten, since I read it more thoroughly) what to do
when an app encounters a malformed URL. Thus any action, including "Look
for a USERNAME:PASSWD@ part, remove it from the 'wannabe-URL' and try
again" is _not_ proscibed by the spec. Formally this is part of the error
recovery.
OK, I was thinking in terms of the user name and password being treated
as valid on the server end if received. You're right, the client can
take anything and fix it up on the user's behalf to turn it into
something a compliant server can use.
Nov 15 '06 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Lou | last post by:
Please can someone put me out my misery! Im trying to find a multiple user/password protection script that will redirect the specific user to a specific directory. At the moment I have set up...
3
by: yabba | last post by:
Is there a way to supply a nt/windows user/password combo in a url for an automatic login to a nt user/password secured site? Something like http://mysite.comuser=mepassword=mypassword =...
0
by: Bright | last post by:
Dear All I'm after a multi-User password database so that I can centrally store system passwords and give granular access to individuals based on their own unique authentication (possibly a...
4
by: Robert Kattke | last post by:
Subject: Can you retrieve/restore a MySQL user Password ? I'm working on my own, local WXP, MySQL, version: 3.23.38-nt and I have the "root" password, and normally use the root account. I have...
1
by: NWx | last post by:
Hi, I'm an old developer, but didn't used SQL Server or MSDE to much before. I have NetSDK instance of MSDE installed on my PC by Net Framework SDK. All quickstart samples access it using...
0
by: Yannick Béot | last post by:
Hi, I'm trying to make an application that allow a user, through a web form to change its password On a click event, here is the code DirectoryEntry usr = new DirectoryEntry( theUserDN,...
7
by: Marc Solé | last post by:
Hello all, I have a web application that runs in a server and makes a Windows user validation to loggin. My question is, how can I get that loggin user, password and domanin to use it in my...
9
by: webrod | last post by:
Hi all, how can I check a user/password in a LDAP ? I don't want to connect with this user, I would like to connect to LDAP with a ADMIN_LOG/ADMIN_PWD, then do a query to find the user and...
0
by: geoharish | last post by:
Dear All, I started using Python just a few days back and there was a requirement of an assigned project to change the user Password through script without user interaction. I could write the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.