HTTP/HTTPS

HTTP Request

・Request Line = request request-URI HTTP-version

・HTTP Headers

<blank line>

・Body(Post only)

HTTP Response

・Status Line = HTTP-version response-code response-phrase

・HTTP Headers

<blank line>

・Body

Content-Type

1.一般テキスト: Content-Type="text/plain"

2.HTML文: Content-Type="text/html"

3.XML文: Content-Type="text/xml"

4.JavaScriptコード: Content-Type="application/javascript"(標準)、"text/javascript"(常用)

5.JSON文字列: Content-Type="application/json"

6.フォーム項目: Content-Type="application/x-www-form-urlencoded"

HTTPメソッド

Keep-Aliveモード

開:Connection: keep-alive

閉:Connection: close

HTTP 1.0

デフォルトは閉

HTTP 1.1

デフォルトは開

キャッシュ

GET vs POST

HTTPヘッダ一覧