[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Atom API problem: PHP can't deal with Atom-Authenticate headers




Simon Willison wrote:
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.

Great information. Thanks for the feedback and all the work tracking down a solution.


	Thanks,
	-joe

--
http://BitWorking.org
http://WellFormedWeb.org