<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                合規國際互聯網加速 OSASE為企業客戶提供高速穩定SD-WAN國際加速解決方案。 廣告
                # 1.5 HTTP ## 1.5 HTTP HTTP即**超文本傳輸協議(Hypertext Transfer Protocol)**[1](#fn_1)。它是像瀏覽器這樣的HTTP客戶端程序(正式名稱叫做**User Agent**)向HTTP服務器程序(**Server**)獲取資源(如網頁、圖片等)的協議。它采用簡單的“一問一答”模式:客戶端發出一個請求(**Request**),服務器給出一個應答(**Response**)。這一過程可以用curl命令展示如下(*HTTP是一個基于文本的協議*,因此我們可以查看請求和應答): ``` curl -v http://www.example.com/index.html ``` 命令輸出: ``` * Trying 93.184.216.34... * Connected to www.example.com (93.184.216.34) port 80 (#0) > GET /index.html HTTP/1.1 > Host: www.example.com > User-Agent: curl/7.43.0 > ... > < HTTP/1.1 200 OK < Content-Type: text/html < Content-Length: 1270 < ... < <!doctype html> <html> … </html> ``` 其中,“> ”開頭的行是客戶端發出的請求,“< ”開頭的行是服務器的應答。注意行首的“> ”和“< ”本身并不是請求或者應答的一部分,只是curl輸出的一種標記。同時,為了簡明扼要,我略去了一些行,用“...”表示。 “\* ”開頭的行是HTTP連接建立以前curl輸出的一些診斷信息。我們可以看到curl通過DNS查找到“www.example.com”對應的IP—— 93.184.216.34[2](#fn_2)。 > 1. HTTP有好幾個版本,目前比較流行的有1.0、1.1和2.0,均由IETF的RFC文本定義。RFC2616 <https://www.ietf.org/rfc/rfc2616.txt> 定義了HTTP 1.1,它是目前最流行的版本。[?](#reffn_1 "Jump back to footnote [1] in the text.") > 2. 注意:DNS查找并不屬于HTTP的一部分。HTTP發生在客戶端到服務器的連接建立以后。[?](#reffn_2 "Jump back to footnote [2] in the text.")
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看