Please help the moderator, what does this mean

Source: Internet
Author: User
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.


Reply to discussion (solution)

http://www.php.net//manual/zh/function.header.php

Header (' Www-authenticate:basic realm = ' realm-name ');
Sentence for?? Log in,?? Out a box? with????? The secret, the entry? And the secret can pass?
$_server[' Php_auth_user '];
$_server[' PHP_AUTH_PW '];
What is the right to take?


Header (' status:401 unauthorized ');
Header (' http/1.0 401 Unauthorized ');
?? The sentence output status value (401) to the browser, primarily for access rights control.


Header ("location:http://www.example.com/");
Face 302 Redirect to http://www.example.com


Header (' www-authenticate:negotiate ');
? Text information

Header (' WWW-AUTHENTICATE:NTLM ', false);
? The text information, because of?? is false, not negotiate before, so??? Text information? Coexistence

Header (' Www-authenticate:basic realm = ' realm-name ');
Sentence for?? Log in,?? Out a box? with????? The secret, the entry? And the secret can pass?
$_server[' Php_auth_user '];
$_server[' PHP_AUTH_PW '];
What is the right to take?


Header (' status:401 unauthorized ');
Header (' http/1.0 401 Unauthorized ');
?? The sentence output status value (401) to the browser, primarily for access rights control.


Header ("location:http://www.example.com/");
Face 302 Redirect to http://www.example.com


Header (' www-authenticate:negotiate ');
? Text information

Header (' WWW-AUTHENTICATE:NTLM ', false);
? The text information, because of?? is false, not negotiate before, so??? Text information? Coexistence



Thanks to ING, really useful. It's a lot clearer, but like this one.
Header (' www-authenticate:negotiate ');
? Text information
What is the use of this message?

This sentence is sent to the browser, with JS can be obtained.
You can pass a string to the browser. I didn't use that much either.

  • Contact Us

    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

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.