... | @@ -79,13 +79,15 @@ It was a bit of a pain to set it up to though, so here are the notes for that -- |
... | @@ -79,13 +79,15 @@ It was a bit of a pain to set it up to though, so here are the notes for that -- |
|
|
|
|
|
You need to send a POST message to your Storage-Url, with the header X-Container-Meta-Web-Index: index.html if your index page is index.html or any other you would prefer. For you to be able to send this message, and for it to be accepted, you first need to authenticate yourself. For the sake of clarity, let start with the complete example of the POST message you need to send, the complete message is (using curl):
|
|
You need to send a POST message to your Storage-Url, with the header X-Container-Meta-Web-Index: index.html if your index page is index.html or any other you would prefer. For you to be able to send this message, and for it to be accepted, you first need to authenticate yourself. For the sake of clarity, let start with the complete example of the POST message you need to send, the complete message is (using curl):
|
|
|
|
|
|
``` curl -X POST -H "X-Container-Meta-Web-Index: index.html" -H "X-Auth-Token: aaaaaaaa-0000-0000-0000-aaaaaaaa" https://storage100.dcw1.clouddrive.com/v1/MossoCloudFS_1234567a-123c-12d1-7cad-a09878abcde3/your_container/ -v```
|
|
``` curl -X POST -H "X-Container-Meta-Web-Index: index.html" -H "X-Auth-Token: aaaaaaaa-0000-0000-0000-aaaaaaaa" https://storage100.dcw1.clouddrive.com/v1/MossoCloudFS_1234567a-123c-12d1-7cad-a09878abcde3/your_container/ -v
|
|
|
|
```
|
|
|
|
|
|
As you can see, you need something to put in X-Auth-Token field [Note from Peter: you also need the Storage URL], to get that value you have issue this other command in your Mac or Linux terminal:
|
|
As you can see, you need something to put in X-Auth-Token field [Note from Peter: you also need the Storage URL], to get that value you have issue this other command in your Mac or Linux terminal:
|
|
|
|
|
|
```
|
|
```
|
|
curl -H "X-Auth-User: your-user-name" -H "X-Auth-Key: 0123456789abcdef01234567899d" https://auth.api.rackspacecloud.com/v1.0/ -v
|
|
curl -H "X-Auth-User: your-user-name" -H "X-Auth-Key: 0123456789abcdef01234567899d" https://auth.api.rackspacecloud.com/v1.0/ -v
|
|
```
|
|
```
|
|
|
|
|
|
Where:
|
|
Where:
|
|
|
|
|
|
* X-Auth-User: Is the username you use to log into your Rackspace account
|
|
* X-Auth-User: Is the username you use to log into your Rackspace account
|
... | | ... | |