BASIC

Basic
BASIC Authentication is based on that the web browser sends an HTTP header containing username and password to the server.

This filter should by default be included e.g. for webdav clients who only can handle this login procedure.

Detailed description

Client request (no authentication):

GET /secure/index.html HTTP/1.0
Host: www.senselogic.se
Server reply:
HTTP/1.0 401 UNAUTHORIZED
Server: SiteVision/2.4
Date: Sat, 27 Nov 2004 10:18:15 GMT
WWW-Authenticate: Basic realm="www.senselogic.se"
Content-Type: text/html
Content-Length: 311

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
<HTML>
  <HEAD>
    <TITLE>Error</TITLE>
    <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8">
  </HEAD>
  <BODY><H1>401 Unauthorised.</H1></BODY>
</HTML>

Client request (username: "Aladdin", password: "open sesame"):
GET /secure/index.html HTTP/1.0
Host: www.senselogic.se
Authorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==
Server reply:
HTTP/1.0 200 OK
Server: SiteVision/2.4
Date: Sat, 27 Nov 2004 10:19:07 GMT
Content-Type: text/html
Content-Length: 10476

Denna sida publicerades: 2015-05-13

Skriv ut PDF-avsnitt

Hjälpte informationen på den här sidan dig?

Missa inga nya rön, tips och tricks! Prenumerera på insite!

Find us!

SiteVision AB (Headquarter)
Vasagatan 10
702 10 Orebro
Sweden

Info: +46 19-17 30 30
Support: +46 19-17 30 39

Latest Tweets