forked from docs/doc-exports
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com> Co-authored-by: Jawei, Li <lijiawei5@huawei.com> Co-committed-by: Jawei, Li <lijiawei5@huawei.com>
77 lines
5.8 KiB
HTML
77 lines
5.8 KiB
HTML
<a name="EN-US_TOPIC_0125560462"></a><a name="EN-US_TOPIC_0125560462"></a>
|
|
|
|
<h1 class="topictitle1">Common Request Headers</h1>
|
|
<div id="body26847831"><p id="EN-US_TOPIC_0125560462__p55114983"><a href="#EN-US_TOPIC_0125560462__table25197309">Table 1</a> describes headers common to OBS REST requests.</p>
|
|
|
|
<div class="tablenoborder"><a name="EN-US_TOPIC_0125560462__table25197309"></a><a name="table25197309"></a><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0125560462__table25197309" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Common request headers</caption><thead align="left"><tr id="EN-US_TOPIC_0125560462__row54071934"><th align="left" class="cellrowborder" valign="top" width="33.71%" id="mcps1.3.2.2.4.1.1"><p id="EN-US_TOPIC_0125560462__p17750533">Header</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="32.96%" id="mcps1.3.2.2.4.1.2"><p id="EN-US_TOPIC_0125560462__p28507060">Description</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="33.33%" id="mcps1.3.2.2.4.1.3"><p id="EN-US_TOPIC_0125560462__p27370548">Remarks</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="EN-US_TOPIC_0125560462__row2421933"><td class="cellrowborder" valign="top" width="33.71%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0125560462__p61958854">Authorization</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="32.96%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0125560462__p52611239">Indicates the authentication information carried in a request.</p>
|
|
<p id="EN-US_TOPIC_0125560462__p3739106">Type: String</p>
|
|
<p id="EN-US_TOPIC_0125560462__p33651961">Default: None</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.33%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0125560462__p41454307">Conditional: optional for anonymous requests and mandatory for other requests</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0125560462__row37544449"><td class="cellrowborder" valign="top" width="33.71%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0125560462__p21201539">Content-Length</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="32.96%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0125560462__p39603122">Indicates the length of request content (excluding headers) defined by RFC 2616.</p>
|
|
<p id="EN-US_TOPIC_0125560462__p20883781">Type: String</p>
|
|
<p id="EN-US_TOPIC_0125560462__p53736309">Default: None</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.33%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0125560462__p57673781">Conditional: mandatory for PUT requests and requests that load XML content</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0125560462__row49301983"><td class="cellrowborder" valign="top" width="33.71%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0125560462__p34037668">Content-Type</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="32.96%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0125560462__p5587738">Indicates the content type of a requested resource, for example, <strong id="EN-US_TOPIC_0125560462__b50289647">text</strong>/<strong id="EN-US_TOPIC_0125560462__b49953640">plain</strong>.</p>
|
|
<p id="EN-US_TOPIC_0125560462__p46929584">Type: String</p>
|
|
<p id="EN-US_TOPIC_0125560462__p19713079">Default: None</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.33%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0125560462__p53255599">Optional</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0125560462__row9538345"><td class="cellrowborder" valign="top" width="33.71%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0125560462__p34408496">Date</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="32.96%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0125560462__p35624820">Indicates the date and time at which a request is initiated.</p>
|
|
<p id="EN-US_TOPIC_0125560462__p52187928">Type: String</p>
|
|
<p id="EN-US_TOPIC_0125560462__p67038172">Default: None</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.33%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0125560462__p61382865">Conditional: optional for anonymous requests or requests containing optional header <strong id="EN-US_TOPIC_0125560462__b15574875">x-amz-date</strong></p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0125560462__row5956154"><td class="cellrowborder" valign="top" width="33.71%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0125560462__p12686464">Host</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="32.96%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0125560462__p65933096115340">Indicates a host address. For example, <strong id="EN-US_TOPIC_0125560462__b52657395145458">bucketname.obs.example.com</strong>.</p>
|
|
<p id="EN-US_TOPIC_0125560462__p53880264">Type: String</p>
|
|
<p id="EN-US_TOPIC_0125560462__p15160332">Default: None</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.33%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0125560462__p20027347">Mandatory</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0125560462__row19866165511115"><td class="cellrowborder" valign="top" width="33.71%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0125560462__p2636530171316">x-amz-security-token</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="32.96%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0125560462__p176361330141312">Header field used to identify the request of a federated user. When the federal authentication function is enabled, users sending such requests are identified as federated users.</p>
|
|
<p id="EN-US_TOPIC_0125560462__p186362030201310">Type: string</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.33%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0125560462__p1063603061316">Optional. This parameter must be carried in the request sent by federated users.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="en-us_topic_0125560240.html">Common Headers</a></div>
|
|
</div>
|
|
</div>
|
|
|