Source for file test_digest_post.php
Documentation is available at test_digest_post.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 POST method</title></head>
<form action="{ $_SERVER['PHP_SELF']}" method="post">
<input type="text" name="title" value="php5" />
if (!empty ($_POST['title'])) {echo 'POST:Title: '. $_POST['title']. '<br>'; }
if (!empty ($_GET['foo'])) {echo 'GET:foo: '. $_GET['foo']. '<br>'; }
print "METHOD: ". $_SERVER['REQUEST_METHOD']. "<br>";
Documentation generated on Mon, 11 Mar 2019 15:47:23 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|