Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

going in without authentication window

Status
Not open for further replies.

effennel

Technical User
Oct 15, 2002
60
CA
Here is my case:

I have cgi-1 from wich I wish to access cgi-2 which is in a protected (.htaccess/.htpasswd) folder.

I already use a db (user/pswd) to access cgi-1. How can cgi-1 access cgi-2 without having to deal with the browser's authentication window?

The combination user/pswd used to access cgi-1 is the same as the content of the .htpasswd file.

Thanks
FNL
 
If you are accessing it using a url and/or it's a standard pop up authentication window then you can use something along the lines of:
Code:
[URL unfurl="true"]http://USERNAME:PASSWORD@www.myurl.co.uk/cgi-bin/cgi-2.ext[/URL]
I'm sure if you are just calling the file without using a url (i.e. in an include) then there's something similar.

Rob Waite
 
Isn't it a little weak on security to pass that info int the url?

FNL
 
you could try passing it as a https request??

HTH
--Paul

Nancy Griffith - songstress extraordinaire,
and composer of the snipers anthem "From a distance ...
 
Any suggestion on how to pass it as https?

Never done that before.

thanks
FNL

FNL
 
https:// as opposed to http://

--Paul

Nancy Griffith - songstress extraordinaire,
and composer of the snipers anthem "From a distance ...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top