"Lanmanck Original"
This article has already said STM32 's start-up process:
http://blog.csdn.net/lanmanck/article/details/8252560
We also know how to jump to the main function, then, after the interruption, then how to run to interrupt the entry address.
As you can see from stm32f10x.s, a whole bunch of interrupt response functions have been defined, which is the interrupt vector table, designator __vectors, which represents the interrupt vector table entry address, for example:
Area RESET,
This article is reproduced from Nidetech blog
Chip-to-uboot start-up process ROM→SPL→UBOOT.IMG introduction ROM code in 335x is the first level of Bootlader. When the MPU is power on, it will automatically execute the code here, complete the partial initialization and boot the second level of the Bootlader, the second level of Bootlader to boot the third level bootader, the TI official for the second and third level of bootlader by Uboot provid
distributed device, usually the FIB distributed on the LPU, by the LPU on the CPU to implement a quick route, if the LPU can not find the road, only to the MPU processing, the rib here to save the most complete routing information, can provide the less common route selection results.Differences between the 2.ARP table and the FDB table:ARP table: The correspondence between IP and Mac;FDB table: The correspondence between Mac+vlan and port;The two big
that the data is not read by the application on the server and interferes with the latter.Request1, the semantic error, the current request can not be understood by the server. Unless modified, the client should not submit the request repeatedly. 2, the request parameter is wrong.401 UnauthorizedThe current request requires user authentication. The response must contain a Www-authenticate information header for the requested resource to ask for user
the current error condition, and whether this is a temporary or permanent condition. These status codes apply to any request method. The browser should display to the user any entity content contained in such an error response. If the client is transmitting data when an error occurs, the server implementation using TCP should carefully ensure that the client has received a packet containing the error message before shutting down the connection between the client and the server. If the client c
data files or users in the database according to the implementation.AccountInformation to verify the user identity. However, you must note thatApacheWhen the module is running,PHPOnly scripts can be used$ PHP_AUTH_USER, $ PHP_AUTH_PW,And$ PHP_AUTH_TYPEThese three variables. If you are usingCGIModePHPThereforeHTTP.
6.2Next, we will introduce in detail how to usePHPVerify the user identity.
In the following example,We use$ PHP_AUTH_USERAnd$ PHP_AUTH_PWThese two variables verify whether th
currently unavailable (due to overload or downtime maintenance ). Generally, this is only a temporary status.
Detailed breakdown:
2XX successful
200 normal; the request has been completed.201 normal; followed by the POST command.202 normal; accepted for processing, but not completed.203 normal; partial information-only part of the returned information.204 normal; no response-received request, but no information to send back.
3XX redirection
301 moved-the requested data has a new location and th
-vRequest Header:Get/secret http/1.1Authorization:basic QWXPY2U6MTIZNDU2...We see here that the sent request header contains the authentication field, which has a value of basic qwxpy2u6mtizndu2. Basic represents the use of HTTP Basic authentication. and QWXPY2U6MTIZNDU2. Is the result of the BASE64 encoding "alice:123456".Response Head:http/1.1 OK...Because we are entering the correct usernamepassword. So the server returns 200, indicating that the validation was successful. Suppose we use the
the 307 response, you need to add the necessary information above so that users can understand and make access requests to the new URI.If this is not a GET or HEAD request, then the browser disables automatic redirection unless the user confirms it, because the requested condition may vary.
400
1, the semantic error, the current request can not be understood by the server. Unless modified, the client should not submit the request repeatedly.2, the request parameter is wrong.
semantic error, the current request can not be understood by the server. Unless modified, the client should not submit the request repeatedly. 2, the request parameter is wrong.401 The current request requires user authentication. The response must contain a Www-authenticate information header for the requested resource to ask for user information. The client can repeatedly submit a request that contains the appropriate Authorization header informa
request can not be understood by the server. Unless modified, the client should not submit the request repeatedly. 2, the request parameter is wrong.401 UnauthorizedThe current request requires user authentication. The response must contain a Www-authenticate information header for the requested resource to ask for user information. The client can repeatedly submit a request that contains the appropriate Authorization header information. If the curre
The code order is:onauthorization-->authorizecore-->handleunauthorizedrequest If Authorizecore returns False, the Handleunauthorizedrequest method is not gone , and Request.stauscode returns a 401,401 error and corresponds to the Web. config OfAll,when Authorizecore==false, jumps to the loginurl= "~/" defined in Web. config[CSharp]View Plaincopyprint?
Public class checkloginattribute:authorizeattribute
{
protected override bool Authorizecore (httpcontextbase HttpContext)
{
variables $ PHP_AUTH_USER and $ PHP_AUTH_PW are used to verify whether the entrant is valid and allow access. In this example, the user names and password pairs that are allowed to log on are tnc and nature:If (! Isset ($ PHP_AUTH_USER )){Header ("WWW-Authenticate: Basic realm =" My Realm "");Header ("HTTP/1.0 401 Unauthorized ");Echo "Text to send if user hits Cancel buttonn ";Exit;}Else{If (! ($ PHP_AUTH_USER = "tnc" $ PHP_AUTH_PW = "nature ")){//
a hyperlink to the new URI and a short description. Because some browsers do not recognize the 307 response, you need to add the necessary information above so that users can understand and make access requests to the new URI. If this is not a GET or HEAD request, then the browser disables automatic redirection unless the user confirms it, because the requested condition may vary.
400
1, the semantic error, the current request can not be understood by the server. Unless m
.
6.2 Below, let's go through the details of how to use PHP to authenticate the user.
In the following example, we use two variables, $php_auth_user and $PHP_AUTH_PW, to verify that the entrants are legitimate and allow entry. In this example, the user name and password pairs that are allowed to log in are TNC and nature, respectively:
if (!isset ($PHP _auth_user))
{
Header ("Www-authenticate:basic realm=" "My Realm");
Header ("http/1.0 401 Unauthori
details of how to verify the identity of the user using PHP .
In the following example,We are using$PHP _auth_userAnd$PHP _AUTH_PWThese two variables to verify that the entrants are legitimate and allowed to enter. In this example, the user name and password pairs that are allowed to log in areTNCAndNature:
if (! Isset($PHP _auth_user)){Header ("Www-authenticate:basic realm=" "My Realm");Header ("http/1.0 401 Unauthorized");echo "Text to
.
In the following example, the variables $ php_auth_user and $ php_auth_pw are used to verify whether the entrant is valid and allow access. In this example, the user names and password pairs that are allowed to log on are TNC and nature:If (! Isset ($ php_auth_user )){Header ("www-Authenticate: Basic realm =" my realm "");Header ("HTTP/1.0 401 unauthorized ");Echo "text to send if user hits cancel buttonn ";Exit;}Else{If (! ($ Php_auth_user = "TNC"
unless it is modified. 2. The request parameters are incorrect.
401
The current request requires user authentication. The response must contain a WWW-Authenticate header for the requested resource to ask for user information. The client can submit a request that contains the appropriate Authorization header information. If the current request already contains the Authorization certificate, then the
The text file/data/home/tenfyguo/proj/Soso/valid.txt contains two users: user1, password 1234, user2, and password 5678.
Open the text file and you will find that the password is encrypted.Note: Do not store this text file in the directory tree of the Web document to avoid being downloaded by users.
To learn more about the htpasswd program, run htpasswd-H.
Restart Apache to make the configuration take effect./Usr/local/Apache/bin/apachectl restartWhen the user opens the browser request for the
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.