simp Mon May 8 23:07:26 2006 UTC
Modified files:
/phpdoc/en/features http-auth.xml
Log:
bug #37371
http://cvs.php.net/viewcvs.cgi/phpdoc/en/features/http-auth.xml?r1=1.44&r2=1.45&diff_format=u
Index: phpdoc/en/features/http-auth.xml
diff -u phpdoc/en/features/http-auth.xml:1.44
phpdoc/en/features/http-auth.xml:1.45
--- phpdoc/en/features/http-auth.xml:1.44 Sun Nov 6 11:57:46 2005
+++ phpdoc/en/features/http-auth.xml Mon May 8 23:07:26 2006
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.44 $ -->
+<!-- $Revision: 1.45 $ -->
<chapter id="features.http-auth">
<title>HTTP authentication with PHP</title>
@@ -76,7 +76,7 @@
if (empty($_SERVER['PHP_AUTH_DIGEST'])) {
header('HTTP/1.1 401 Unauthorized');
header('WWW-Authenticate: Digest realm="'.$realm.
- '" qop="auth" nonce="'.uniqid().'" opaque="'.md5($realm).'"');
+ '",qop="auth",nonce="'.uniqid().'",opaque="'.md5($realm).'"');
die('Text to send if user hits Cancel button');
}
@@ -129,7 +129,8 @@
compatibility with all clients, the keyword "Basic" should be written with
an
uppercase "B", the realm string must be enclosed in double (not single)
quotes,
and exactly one space should precede the <emphasis>401</emphasis> code in
the
- <emphasis>HTTP/1.0 401</emphasis> header line.
+ <emphasis>HTTP/1.0 401</emphasis> header line. Authentication parameters
have
+ to be comma-separated as seen in the digest example above.
</para>
</note>