http://docs.openstack.org/api/openstack-object-storage/1.0/content/PUT_createOrReplaceObject__v1__account___container___object__storage_object_services.html
http://docs.openstack.org/api/openstack-object-storage/1.0/content/POST_updateObjectMeta__v1__account___container___object__storage_object_services.html
taken from these docs: Content-Type ?String (Optional) Changes the MIME type for the object.
Seems to be working OK in Hammer.
$ curl -I "http://localhost:8080/swift/v1/cont1/file1" -X POST -H "Content-Type: text/plain" -H "X-Auth-Token: $token"
HTTP/1.1 202 Accepted
Content-type: text/plain; charset=utf-8
Content-Length: 0
$ curl -i "http://localhost:8080/swift/v1/cont1/file1" -X HEAD -H "X-Auth-Token: $token"
HTTP/1.1 200 OK
Server: nginx/1.4.6 (Ubuntu)
Date: Wed, 04 Feb 2015 13:24:26 GMT
Content-Type: text/plain
Content-Length: 14
Connection: keep-alive
Accept-Ranges: bytes
Last-Modified: Wed, 04 Feb 2015 13:24:21 GMT
X-Timestamp: 1423056261
etag: e0bc568fc66f1e4d3ebaddf58dc07831
$ curl -I "http://localhost:8080/swift/v1/cont1/file1" -X POST -H "Content-Type: application/json" -H "X-Auth-Token: $token"
HTTP/1.1 202 Accepted
Content-type: text/plain; charset=utf-8
Content-Length: 0
$ curl -i "http://localhost:8080/swift/v1/cont1/file1" -X HEAD -H "X-Auth-Token: $token"
HTTP/1.1 200 OK
Server: nginx/1.4.6 (Ubuntu)
Date: Wed, 04 Feb 2015 13:24:44 GMT
Content-Type: application/json
Content-Length: 14
Connection: keep-alive
Accept-Ranges: bytes
Last-Modified: Wed, 04 Feb 2015 13:24:40 GMT
X-Timestamp: 1423056280
etag: e0bc568fc66f1e4d3ebaddf58dc07831
$ curl -I "http://localhost:8080/swift/v1/cont1/file1" -X PUT -H "Content-Type: application/xml" -H "X-Auth-Token: $token" -H "Content-Length: 0"
HTTP/1.1 201 Created
etag: d41d8cd98f00b204e9800998ecf8427e
Content-type: text/plain; charset=utf-8
Content-Length: 0
$ curl -i "http://localhost:8080/swift/v1/cont1/file1" -X HEAD -H "X-Auth-Token: $token"
HTTP/1.1 200 OK
Server: nginx/1.4.6 (Ubuntu)
Date: Wed, 04 Feb 2015 13:26:22 GMT
Content-Type: application/xml
Content-Length: 0
Connection: keep-alive
Accept-Ranges: bytes
Last-Modified: Wed, 04 Feb 2015 13:26:16 GMT
X-Timestamp: 1423056376
etag: d41d8cd98f00b204e9800998ecf8427e