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
curl 正在设置 Header 即 Key,Value Pair to Swift Auth System 以使用 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的示例链接