Hello! I would like to be able to access a password protected directory by
setting the userid and password within my script (HTML/Java Script/Perl - whatever).
I am creating links (on the fly) to the files in the passowrd protected directory
if the user is a valid member (based upon a database lookup). The members'
userid and password IS NOT the same as the userid and password to access the
directory as there are many members - one directory (therefore one userid and
Sure, I could simply create the link as follows provided the member is valid:http://userid:email@example.com/file.html
but then everyone knows the userid and password and can send it to anyone.
Is there an HTTP variable that I can set that tells the server the user is valid?
Something that will simply allow me to create the link as:http://www.domain.com/file.html
Or - is there a way to encrypt the userid and password in the URL?