Comments (3)
@annegentle : Checking on this.
from docs-cloud-files.
@annegentle: Testing shows example does work, but I will update to say that you should put in an appropriate Content-Length and Content-Type for your object as noted in Jamie's emailed response to customer. Results below:
Create container curl example and result:
$ curl -i -X PUT https://storage101.dfw1.clouddrive.com/v1/MossoCloudFS_0672d7fa-9f85-4a81-a3ab-adb66a880321/testContainer -H "X-Auth-Token: $AUTH_TOKEN"
HTTP/1.1 201 Created
Content-Length: 0
Content-Type: text/html; charset=UTF-8
X-Trans-Id: tx858f693aeb5d420ea43da-00568d3c5cdfw1
Date: Wed, 06 Jan 2016 16:10:04 GMT
Upload object curl example and result:
$ curl -i -X PUT https://storage101.dfw1.clouddrive.com/v1/MossoCloudFS_0672d7fa-9f85-4a81-a3ab-adb66a880321/testContainer/testObject -H "X-Auth-Token: $AUTH_TOKEN" -H "Content-Length: 0" -H "Content-Type: image/jpeg"
HTTP/1.1 201 Created
Last-Modified: Wed, 06 Jan 2016 16:24:01 GMT
Content-Length: 0
Etag: d41d8cd98f00b204e9800998ecf8427e
Content-Type: text/html; charset=UTF-8
X-Trans-Id: txce5dc394eea940a08a672-00568d3fa0dfw1
Date: Wed, 06 Jan 2016 16:24:00 GMT
from docs-cloud-files.
Just got this comment from support about Content-Length via IRC channel:
10:26 SCO_JohnH: typically, it should be noted that by default curl will set the content-length correctly without it being specifically set so for that example, it would be okay to omit the content-length altogether
from docs-cloud-files.
Related Issues (20)
- Python 3 compatible code example for TempURL
- 'Get object via temporary URL' section HOT 5
- Platform migration
- Bug: Callout box icons overlap HOT 1
- Bug: Some links start a new line HOT 2
- Bug: RST definition lists not formatting correctly HOT 1
- Bug(?): Navigation side bar does not float when scrolling HOT 1
- Bug: Table title moved to below the table HOT 1
- Refactor API Guide: QE checklist HOT 10
- Refactor API Guide: publish and deploy updates
- allowed headers HOT 6
- Fix broken link
- Missing Output in Cloud Files API Docs HOT 6
- Correct deleting a large object section HOT 1
- Add example responses to creating a large object section HOT 1
- Cloud files docs refer to block storage HOT 1
- Review and correct API key details HOT 2
- License HOT 2
- Support for .Net Core HOT 5
- TempURL supports SHA256, let's use it in the examples HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docs-cloud-files.