我正在实现一个rest API,现在我必须执行以下请求,然后从服务器读取响应。任何人都可以指导我或提供一段代码来在Android中实现它
$ curl `http://xyz.com:84545/api/locks/`
-X POST \
-H "Date: Thu, 01 Mar 2012 01:23:45 GMT"
-H "Authorization: SABH ZW1haWxAaG9zdC5jb20Mohoehglsdofsdofjsdfjsdfjsdj DUzMjNhOTg=" \
-H "Content-Type: application/json" \
-d '{"i":0,"u":1,"h":1,"m":"2312312312","n":"Lock"}'