Ask the moderator for help. what does this mean?-php Tutorial

Source: Internet
Author: User
Ask the moderator for help. 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 these mean ?? I often see it in php. I still don't quite understand it in the php Manual. Please advise. Thank you.


Reply to discussion (solution)

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

Header ('www-Authenticate: Basic realm = "Realm-Name "');
? Use a sentence ?? Login ,?? Output 1? Box? Use ????? Password ?,? Entered ?? Hemi? Yes?
$ _ SERVER ['php _ AUTH_USER '];
$ _ SERVER ['php _ AUTH_PW '];
? ? OK?


Header ('status: 401 unauthorized ');
Header ('http/1.0 401 unauthorized ');
?? The sentence output status (401) is sent to the browser, which is mainly used for access permission control.


Header ("Location: http://www.example.com /");
? Face 302 redirection to http://www.example.com


Header ('www-Authenticate: negotiate ');
? Set one ?? Text

Header ('www-Authenticate: ntlm', false );
? Set one ?? Text information, because? After ?? Is false, no? ? Previous Negotiate, so ??? Text information? Coexistence

Header ('www-Authenticate: Basic realm = "Realm-Name "');
? Use a sentence ?? Login ,?? Output 1? Box? Use ????? Password ?,? Entered ?? Hemi? Yes?
$ _ SERVER ['php _ AUTH_USER '];
$ _ SERVER ['php _ AUTH_PW '];
? ? OK?


Header ('status: 401 unauthorized ');
Header ('http/1.0 401 unauthorized ');
?? The sentence output status (401) is sent to the browser, which is mainly used for access permission control.


Header ("Location: http://www.example.com /");
? Face 302 redirection to http://www.example.com


Header ('www-Authenticate: negotiate ');
? Set one ?? Text

Header ('www-Authenticate: ntlm', false );
? Set one ?? Text information, because? After ?? Is false, no? ? Previous Negotiate, so ??? Text information? Coexistence



Thanks to ing. This is much clearer,
Header ('www-Authenticate: negotiate ');
? Set one ?? Text
What is the purpose of this message?

This sentence is sent to the browser and can be obtained using js.
You can send a string to the browser. I have never used this.

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.