Great article here:
First step is to get the X-Auth-Token:
1 2 |
curl -v -X GET -H "X-Auth-User: <username>" -H "X-Auth-Key: <api_key>" \ "https://identity.api.rackspacecloud.com/v1.0" |
Then send the upload request:
1 2 |
curl -X PUT -T <filename> -H "X-Auth-Token: <auth_token>" \ "<storage_url>/<container_name>/<filename>"; |