[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

Expert Exchange's: Login USERNAME & PASSWORD Window

Posted on 1997-12-04
2
Medium Priority
?
427 Views
Last Modified: 2013-12-25
Before any of us can get into Expert Exchange we all have to LOGIN.  Automatically a window pops up asking for USERNAME and PASSWORD.  We enter those in and the window data is submitted back to the CGI.

How does Expert Echange do this without using Javascript?  I am using Netscape and it pops up as if the CGI of EE has sent back data trigerring the box to pop up.  

What is the code to do such a thing?  I do not want to use Javascript because I want to pop up such a window for every browser.

Any help would be greatly appreciated!
0
Comment
Question by:mirror
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 84

Expert Comment

by:ozo
ID: 1831503
Experts Exchange sends back the following HTTP headers:

HTTP/1.0 401 Unauthorized
Date: Fri, 05 Dec 1997 23:11:10 GMT
Server: Apache/1.1.2
Content-type: text/html
WWW-Authenticate: Basic realm="Experts Exchange Customer"


Your browser then gets your USERNAME and PASSWORD, and resends the request with the header:

Authorization: Basic <base64 encoded USERNAME:PASSWORD>
0
 
LVL 1

Accepted Solution

by:
maholt earned 0 total points
ID: 1831504
It is not done by any programming in the web page.  It is done with a .htaccess/.htpasswd file.  Any web server documentation should cover this.  It is pretty simple.
http://www.smartek.net/pass/ has a short, yet complete, description of how to set it up.

The authentication is done completely by webserver-browser negotiation.  No CGI programming is involved.
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
Learn the basics of while and for loops in Python.  while loops are used for testing while, or until, a condition is met: The structure of a while loop is as follows:     while <condition>:         do something         repeate: The break statement m…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
Suggested Courses

656 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question