Source for file test_digest_get.php
Documentation is available at test_digest_get.php
require_once "Auth/HTTP.php";
define('DSN','sqlite://dummy:@localhost//tmp/user.db?mode=0644');
$options = array ('dsn'=> DSN, 'authType'=> 'digest');
$auth->setRealm ('dummy', 'sample');
<head><title>HTTP digest authentication for GET method</title></head>
print "auth: ". $auth->authMethod. "<br />";
print "username: ". $auth->username. "<br />";
print "password: ". $auth->password. "<br />";
print "auth: ". print_r($auth->auth ). "<br />";
<form action="{ $_SERVER['PHP_SELF']}" method="get">
<input type="text" name="title" value="php5" />
if (!empty ($_POST['title'])) {echo 'Title: '. $_POST['title']; }
Documentation generated on Mon, 11 Mar 2019 15:47:23 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|