2011年1月23日 星期日

10/04 review

* tcp:在http的下層 建立起連線直到完成才會斷線
http:提出一個request才會建立起連線 此完成即斷線
.改善à同時進行多個request
            à不立即結束連線
*    nonpersistent http
persistent http:server leaves connection open after sending response
.without pipelinling  ex:同時傳送十個圖
.with pipelinling    ex:不等sever回應 連續傳十個圖
*    telnet:support tcp 連接的protocol
port:暫存資料用
request message: request line(head command)
                          header lines(host,user-agent:brower 種類)
     GET:用明碼傳去傳回 會在URL看見參數
     POST:參數不會在URL看見而是在body裡
     response message: 在header lines中
     àlast-modified:能節省頻寬 最後更改的時間一樣即是版本相同能直接從cache抓
*    cookie
.存在client的小筆資訊
.由response中的 set cookie 設定
.keeping state
*    session
.由server控制
.指從一個瀏覽器窗口打開到關閉這個期間 通常預設20分鐘

*    xhtml
.markup language(非是程式語言的一種)
.內容和呈現部分是分開的

關於session 此處有更詳細的介紹

沒有留言:

張貼留言