Head schoolbag for HTTP request information, request head schoolbag
The head schoolbag contains important information related to HTTP requests, such as ip, host, url, and client, as shown in the following table:
Variable name |
Value |
Accept |
Text/html, application/xhtml + xml, application/xml; q = 0.9, image/webp, */*; q = 0.8 |
Accept-encoding |
Gzip, deflate, sdch |
Accept-language |
Zh-CN, zh; q = 0.8, en; q = 0.6 |
Client |
View (view indicates a browser, mobile indicates a mobile phone, and bot indicates a search engine crawler) |
Connection |
Keep-alive |
Content-length |
-1 |
Content-type |
Enc |
Host |
Hua (host name) |
Ip |
10.0.0.12 (visitor's IP address) |
Port |
80 (port) |
Protocol |
HTTP/1.1 |
Querystring |
N1 = 1 & n2 = 2 |
Uri |
/_ Samples/head.html (current webpage address) |
Uri1 |
/_ Samples/head.html? N1 = 1 & n2 = 2 |
Url |
/_ Samples/head.html? N1 = 1 & n2 = 2 (the complete link address of the current webpage) |
User-agent |
Mozilla/5.0 (Windows NT 5.2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/38.0.2125.111 Safari/537.36 (client tool information) |
Use expressions during development@ {Head: variable name}Use the value directly, for example, the IP address of the Current Visitor:@ {Head: ip}
(Information and example file: _ samples/head.html)
Download and description of light platform Resources
Platform and the latest development manual free download: http://download.csdn.net/detail/tx18/8381859
Development Instance:Light B2C e-commerce websites, Free download: http://download.csdn.net/detail/tx18/8318585
The light-Open Platform will occasionally upgrade to provide more powerful and Easy functions for you. Please pay attention to the latestDevelopment Manual
Note: The light-Open Platform and our development instances are permanently free of charge and are not intended for use. That is to say, You Can slightly modify our instances and operate them on your own or sell them to your customers, we will not charge you a penny.