Dell DX6004S DX Object Storage Application Guide - Page 32

Scsp Write

Page 32 highlights

Chapter 6. SCSP WRITE The following topics in this chapter discuss details about SCSP WRITE: • Section 6.1, "Introduction to WRITE" • Section 6.3, "Unnamed Object WRITE Details" • Section 6.4, "Normal Responses to WRITE" • Section 6.5, "Error Responses to WRITE" 6.1. Introduction to WRITE This section discusses general information about SCSP WRITE that applies to both named and unnamed objects. The WRITE message is a request for a content stream to be stored in a DX Storage cluster. It is formatted as a simple HTTP request using the POST method as shown in the following examples: • Named object POST /bucket/photo.jpg HTTP/1.1 Host: cluster.example.com User-Agent: DX Storage Client/0.1 Content-Length: 43402 Expect: 100-continue Content-Type: image/jpeg Content-Language: en/us, x-pig-latin Content-Version: 42 Last-Modified: Wed, 1 Sept 2010 15:59:02 GMT Created-Date: Wed, 1 Sept 2010 15:59:02 GMT CRLF [ content-stream ] Note In contrast to an unnamed object, if you WRITE a named object that already exists, the existing object is overwritten with a new version. • Unnamed object POST / HTTP/1.1 Host: cluster.example.com User-Agent: DX Storage Client/0.1 Content-Length: 43402 Expect: 100-continue Content-Type: image/jpeg Content-Language: en/us, x-pig-latin Content-Version: 42 Last-Modified: Wed, 1 Sept 2010 15:59:02 GMT Created-Date: Wed, 1 Sept 2010 15:59:02 GMT CRLF [ content-stream ] Copyright © 2010 Caringo, Inc. All rights reserved 27 Version 5.0 December 2010

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81

Copyright © 2010 Caringo, Inc.
All rights reserved
27
Version 5.0
December 2010
Chapter 6. SCSP WRITE
The following topics in this chapter discuss details about SCSP WRITE:
Section 6.1, “Introduction to WRITE”
Section 6.3, “Unnamed Object WRITE Details”
Section 6.4, “Normal Responses to WRITE”
Section 6.5, “Error Responses to WRITE”
6.1. Introduction to WRITE
This section discusses general information about SCSP WRITE that applies to both named and
unnamed objects.
The WRITE message is a request for a content stream to be stored in a DX Storage cluster. It is
formatted as a simple HTTP request using the POST method as shown in the following examples:
Named object
POST /bucket/photo.jpg HTTP/1.1
Host: cluster.example.com
User-Agent: DX Storage Client/0.1
Content-Length: 43402
Expect: 100-continue
Content-Type: image/jpeg
Content-Language: en/us, x-pig-latin
Content-Version: 42
Last-Modified: Wed, 1 Sept 2010 15:59:02 GMT
Created-Date: Wed, 1 Sept 2010 15:59:02 GMT
CRLF
[ content-stream ]
Note
In contrast to an unnamed object, if you WRITE a named object that already exists, the
existing object is overwritten with a new version.
Unnamed object
POST / HTTP/1.1
Host: cluster.example.com
User-Agent: DX Storage Client/0.1
Content-Length: 43402
Expect: 100-continue
Content-Type: image/jpeg
Content-Language: en/us, x-pig-latin
Content-Version: 42
Last-Modified: Wed, 1 Sept 2010 15:59:02 GMT
Created-Date: Wed, 1 Sept 2010 15:59:02 GMT
CRLF
[ content-stream ]