Head schoolbag for HTTP request information, request head schoolbag

Source: Internet
Author: User

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.

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.