[Java EE] HTTP protocol details

Source: Internet
Author: User

Previous post:http://www.cnblogs.com/taoshihan/p/5346731.html

HTTP Request

Request Line

Get/taoshihan/p/5346731.html http/1.1

Request Method-Request Resource name-the protocol to be followed

(POST,GET,DELETE,PUT,HEAD ,OPTIONS,TRACE)

GET General requirements cannot exceed 1k,POST transmission No size limit

Request Header

Host: www.cnblogs.com

Host Name

Connection:keep-alive

Connection Information

Pragma:no-cache

Cache-control:no-cache

accept:text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8

Acceptable: File type

Upgrade-insecure-requests:1

user-agent:mozilla/5.0 (Windows NT 6.3; WOW64) applewebkit/537.36 (khtml, like Gecko) chrome/45.0.2454.101 safari/537.36

Client Information

Referer:http://zzk.cnblogs.com/s?w=blog%3ataoshihan%20%e5%8d%8f%e8%ae%ae

Source Address

Accept-encoding:gzip, deflate, SDCH

Acceptable encoding: Compression

accept-language:zh-cn,zh;q=0.8

Acceptable language: Chinese

Response header

http/1.1 OK

Protocol version-Status code

Date:thu, 03:47:48 GMT

content-type:text/html; Charset=utf-8

The content type and encoding returned

Transfer-encoding:chunked

Data transfer mode: block

Connection:keep-alive

Vary:accept-encoding

Cache-control:private, max-age=10

Notifies the browser whether to cache

Expires:thu, 03:47:58 GMT

Notifies the browser to cache resources to a specified point in time

Last-modified:thu, 03:47:48 GMT

Implementing the Cached

x-ua-compatible:ie=10

Content-encoding:gzip

Content encoding: Compression

Status code

200~299 successfully received

300~399 Resource Transfer 302(redirected),304(using cache),307

400~499 request error 404 not found

500~599 Server Internal error

[Java EE] HTTP protocol details

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.