[javaEE] http協議詳細,javaeehttp協議

來源:互聯網
上載者:User

[javaEE] http協議詳細,javaeehttp協議

上一篇:http://www.cnblogs.com/taoshihan/p/5346731.html

HTTP請求

請求行

GET /taoshihan/p/5346731.html HTTP/1.1

請求方式——請求資源名稱 ——所遵循的協議

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

GET一般要求不能超過1k,POST傳輸沒有大小限制

 

要求標頭

Host: www.cnblogs.com

主機名稱

Connection: keep-alive

串連資訊

Pragma: no-cache

Cache-Control: no-cache

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

可以接受:檔案類型

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

用戶端資訊

Referer: http://zzk.cnblogs.com/s?w=blog%3Ataoshihan%20%E5%8D%8F%E8%AE%AE

來源地址

Accept-Encoding: gzip, deflate, sdch

可以接受的編碼:壓縮

Accept-Language: zh-CN,zh;q=0.8

可以接受的語言:中文

 

 

回應標頭

 

HTTP/1.1 200 OK

協議版本——狀態代碼

Date: Thu, 19 May 2016 03:47:48 GMT

Content-Type: text/html; charset=utf-8

返回的內容類型和編碼

Transfer-Encoding: chunked

資料轉送模式:塊

Connection: keep-alive

Vary: Accept-Encoding

Cache-Control: private, max-age=10

通知瀏覽器是否緩衝

Expires: Thu, 19 May 2016 03:47:58 GMT

通知瀏覽器緩衝資源到指定的時間點

Last-Modified: Thu, 19 May 2016 03:47:48 GMT

實現緩衝的

X-UA-Compatible: IE=10

Content-Encoding: gzip

    內容編碼:壓縮

狀態代碼

200~299 成功接收

300~399 資源轉移 302(重新導向),304(使用緩衝),307

400~499 請求有錯誤 404找不到

500~599 伺服器內部錯誤 500

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.