Ken MacLeod wrote:<?php
echo "<p>Atom-Authentication is {$_SERVER['HTTP_ATOM_AUTHENTICATION']}.</p>";
?>
should work just fine when called by this curl command:
curl --header "Atom-Authentication: blah" http://example.org/atom-auth.php
and display "Atom-Authentication is blah."
If someone more familiar with PHP could check that out and let us know, thanks!
I just checked it: it doesn't work for any headers, but it DOES work if the header starts with X-. Change the header to X-Atom-Authentication and the problem is solved.
Thanks, -joe
-- http://BitWorking.org http://WellFormedWeb.org