• Object Storage Service

obs
  1. Help Center
  2. Object Storage Service
  3. API Reference (OBS)
  4. Operations on Buckets
  5. HEAD Bucket
  6. Examples

Examples

Sample Request

HEAD / HTTP/1.1 
 User-Agent: Jakarta Commons-HttpClient/3.1 
 Host: bucketname.obs.example.com
 Accept: */*
 Date: Sun, 26 Sep 2010 09:16:00 GMT  
 Authorization: AWS 04RZT432N80TGDF2Y2G2:JUtd9kkJFjbKbkP9f6T/tAxozYY= 

Sample Response

HTTP/1.1 200 OK 
Server: OBS 
x-amz-request-id: 367CB63A2F283044981285492719060 
x-reserved: amazon, aws and amazon web services are trademarks or registered trademarks of Amazon Technologies, Inc 
x-amz-bucket-region: R1
Content-Type: application/xml
x-obs-version: 3.0
x-default-storage-class: STANDARD 
x-amz-id-2: MzY3Q0I2M0EyRjI4MzA0NDk4MTI4NTQ5MjcxOTA2MEFBQUFBQUFBYmJiYmJiYmJD 
Date: Sun, 26 Sep 2010 09:18:36 GMT
Content-Length: 0

Sample Request (Getting Bucket Metadata and CORS Configuration when CORS is properly configured)

HEAD / HTTP/1.1
User-Agent: curl/7.19.0 (x86_64-suse-linux-gnu) libcurl/7.19.0 OpenSSL/0.9.8{ zlib/1.2.3 libidn/1.10
Host: bucketname.obs.example.com
Accept: */*
Date: Tue, 28 Apr 2015 13:47:30 +0000
Authorization: AWS D13E0C94E722DD69423C:1UL75oi0bFRpJlgZMfvh4lUyjBs=
Origin:www.example.com
Access-Control-Request-Headers:AllowedHeader_1

Sample Response (Getting Bucket Metadata and CORS Configuration when CORS is properly configured)

HTTP/1.1 200 OK
x-amz-request-id: BC4C45F57B0DED38D006D5F8FEB738C4
x-reserved: amazon, aws and amazon web services are trademarks or registered trademarks of Amazon Technologies, Inc
Access-Control-Allow-Origin: www.example.com
Access-Control-Allow-Methods: POST,GET,HEAD,PUT
Access-Control-Allow-Headers: AllowedHeader_1
Access-Control-Max-Age: 100
Access-Control-Expose-Headers: ExposeHeader_1
x-amz-bucket-region: R1
Content-Type: text/xml
x-obs-version: 3.0
x-default-storage-class: STANDARD
x-amz-id-2: YkFlH3FTA2Tf/lIc2XiyuICp/EUqpVI4j1/g5hlatg75TTZdERSCYliqitChspgA
Date: Tue, 28 Apr 2015 13:47:30 GMT
Content-Length: 0