diff options
author | Artyom Liou <10079456+artyomliou@users.noreply.github.com> | 2021-04-30 00:32:53 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-30 00:32:53 +0800 |
commit | ee3b1c87e3c8e72ca130943eed260ad642246581 (patch) | |
tree | efe7c334cc745e8ef8dd5df1a8a99db2866b2d86 /files/zh-tw | |
parent | 542ed30ab8ee593c3d66dad5decdd27f6da68e73 (diff) | |
download | translated-content-ee3b1c87e3c8e72ca130943eed260ad642246581.tar.gz translated-content-ee3b1c87e3c8e72ca130943eed260ad642246581.tar.bz2 translated-content-ee3b1c87e3c8e72ca130943eed260ad642246581.zip |
Initial /web/http/headers/cookie, zh-TW (#695)
* web/http/headers/cookie (zh-TW translation)
* fix: commit錯檔案
Diffstat (limited to 'files/zh-tw')
-rw-r--r-- | files/zh-tw/web/http/headers/cookie/index.html | 73 |
1 files changed, 73 insertions, 0 deletions
diff --git a/files/zh-tw/web/http/headers/cookie/index.html b/files/zh-tw/web/http/headers/cookie/index.html new file mode 100644 index 0000000000..596e273a54 --- /dev/null +++ b/files/zh-tw/web/http/headers/cookie/index.html @@ -0,0 +1,73 @@ +--- +title: Cookie +slug: Web/HTTP/Headers/Cookie +tags: + - Cookies + - HTTP + - Reference + - header + - request +--- +<div>{{HTTPSidebar}}</div> + +<p><strong><code>Cookie</code></strong> 是 HTTP 請求標頭,它的值包含由伺服器設定的 <a href="/en-US/docs/Web/HTTP/Cookies">HTTP cookies</a> (透過 {{HTTPHeader("Set-Cookie")}} 標頭設定,或者透過 Javascript 的 {{domxref("Document.cookie")}} 設定)。</p> + +<p><code>Cookie</code> 標頭不是必要的,比如瀏覽器可能會因為隱私設定而直接省略 Cookie 不傳。</p> + +<table class="properties"> + <tbody> + <tr> + <th scope="row">Header type</th> + <td>{{Glossary("Request header")}}</td> + </tr> + <tr> + <th scope="row">{{Glossary("Forbidden header name")}}</th> + <td>yes</td> + </tr> + </tbody> +</table> + +<h2 id="Syntax">Syntax</h2> + +<pre class="brush: html">Cookie: <cookie-list> +Cookie: name=value +Cookie: name=value; name2=value2; name3=value3</pre> + +<dl> + <dt><cookie-list></dt> + <dd>一連串名值對(name-value pair),格式為: <code><cookie-name>=<cookie-value></code>。每對之間由一個分號與一個空白分隔(<code>'; '</code>)。</dd> +</dl> + +<h2 id="Examples">範例</h2> + +<pre>Cookie: PHPSESSID=298zf09hf012fh2; csrftoken=u32t4o3tb3gg43; _gat=1</pre> + +<h2 id="Specifications">Specifications</h2> + +<table class="standard-table"> + <thead> + <tr> + <th scope="col">Specification</th> + <th scope="col">Title</th> + </tr> + </thead> + <tbody> + <tr> + <td>{{RFC("6265", "Cookie", "5.4")}}</td> + <td>HTTP State Management Mechanism</td> + </tr> + </tbody> +</table> + +<h2 id="Browser_compatibility">Browser compatibility</h2> + +<p class="hidden">The compatibility table in this page is generated from structured data. If you'd like to contribute to the data, please check out <a href="https://github.com/mdn/browser-compat-data">https://github.com/mdn/browser-compat-data</a> and send us a pull request.</p> + +<p>{{Compat("http.headers.Cookie")}}</p> + +<h2 id="See_also">See also</h2> + +<ul> + <li>{{HTTPHeader("Set-Cookie")}}</li> + <li>{{domxref("Document.cookie")}}</li> +</ul> |