Common request headers for HTTP protocols

Source: Internet
Author: User

Accept (*): text/html,image/*: Browser tells the server which data types are supported
MIME type: Large type/small type
File type: JPG-image/jpg
HTML file: HTML-text/html
CSS files: css->-text/css
TXT file: txt-> Text/plain
......
View Tomcat/conf/web.xml

Accept-charset: iso-8859-1: Tell the server that the browser supports encoding

accept-encoding (*):Gzip,compress: Tell the Server Browser which Web page compression format is supported
Common compression formats: gzip
The server first compresses the data and then compresses it to the browser (in order to save bandwidth)

Accept-language:EN-US,ZH-CN: Tell the server Browser the language priority (which languages are supported)

HOST:WWW.IT315.ORG:80: Access to hosts and ports

if-modified-since (*): Tue, Jul 18:23:51 GMT: Tells the server that the last modification time of the browser cache file is now

Referer (*):Http://www.it315.org/index.jsp: Where does the current resource come from


Content-type (*): application/x-www-form-urlencoded Request Body Content type encoding
Enctype Property: Request body Content Type encoding
Default type: application/x-www-form-urlencoded non-file upload
Display effect: name=eric&password=123456

Other types: Multipart/form-data files when uploading
Display effect:
。。。。。。。


user-agent (*): mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0): Browser type

Cookie:name=ericSession Management related

Connection:close/keep-alive Connection Status
Date:Tue, 18:23:51 GMT current request time

Common request headers for HTTP protocols

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.