For Programmers: Free Programming Magazines  


Home > Archive > PHP Documentation > May 2006 > cvs: phpdoc /en/features http-auth.xml









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author cvs: phpdoc /en/features http-auth.xml
Oliver Albers

2006-05-09, 6:58 pm

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/phpd...5&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>

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com