enter code here
捲曲curl is a tool to transfer data from or to a server, using one of the supported protocols (DICT, FILE, FTP, FTPS, GOPHER, HTTP, HTTPS, IMAP, IMAPS, LDAP, LDAPS, POP3, POP3S, RTMP, RTSP, SCP, SFTP, SMB, SMBS, SMTP, SMTPS, TELNET and TFTP). The command is designed to work without user interaction
所以一旦你發出
curl -i -X GET -H 'X-Auth-User: myaccount:me' -H 'X-Auth-Key: secretpassword' http://127.0.0.1:8080/auth/v1.0
捲曲是標題即鍵,值對設立斯威夫特身份驗證系統與TempAuth系統驗證 頭是
X-Auth-User
X-Auth-Key
最後,如果AUTH通過,你會得到一個OK
HTTP/1.1 200 OK
,如果你看到的頭它會含有像
X-Storage-Url: http://127.0.0.1:8080/v1/AUTH_myaccount
X-Auth-Token: AUTH_tk7790238141c343bdb6ad1303e3d3bc00
Content-Type: text/html; charset=UTF-8
X-Storage-Token: AUTH_tk7790238141c343bdb6ad1303e3d3bc00
Content-Length: 0
X-Trans-Id: txab863ae755ec4c8d9aa19-0054bfda6f
Date: Wed, 21 Jan 2015 16:57:19 GMT
這裏的信息是,解釋TempAuth
對不起,這個龐大的後期重播樣品鏈接,我剛纔看到它,奇蹟般地你已經回答了我在論壇上提出的問題(通過curl上傳文件)的間接回應...也感謝解釋。 – Dady 2013-07-17 13:31:02