Please help the moderator, what does this mean??
Header (' Www-authenticate:basic realm = ' realm-name ');
Header (' status:401 unauthorized ');
Header (' http/1.0 401 Unauthorized ');
Header ("location:http://www.example.com/");
Header (' www-authenticate:negotiate ');
Header (' WWW-AUTHENTICATE:NTLM ', false);
What do you mean by these few? Often see in PHP oh, I read in the PHP manual, still do not quite understand. Please advise. Thank you.
------Solution--------------------
http://www.php.net//manual/zh/function.header.php
------Solution--------------------
Header (' Www-authenticate:basic realm = ' realm-name ');
This is used to verify that the login, will pop a box to the user number mega code, enter the mega and password can pass through
$_server[' Php_auth_user '];
$_server[' PHP_AUTH_PW '];
Access to the line of judgment
Header (' status:401 unauthorized ');
Header (' http/1.0 401 Unauthorized ');
These two sentences output state value (401) to the browser, which is used primarily for access rights control.
Header ("location:http://www.example.com/");
page 302 Redirect to http://www.example.com
Header (' www-authenticate:negotiate ');
Set up a text message
Header (' WWW-AUTHENTICATE:NTLM ', false);
Set a report message because the back side is false and does not cover the previous negotiate, so the two text messages coexist
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service