【发布时间】:2015-03-17 22:11:24
【问题描述】:
我将如何在 Java URLConnection 中实现以下 curl 命令
curl -X PUT \
-H "X-Parse-Application-Id: " \
-H "X-Parse-REST-API-Key: " \
-H "Content-Type: application/json" \
-d '{"score":73453}'
提前致谢
【问题讨论】:
-
curl 命令在哪里?
-
curl -X PUT \ -H "X-Parse-Application-Id: " \ -H "X-Parse-REST-API-Key: " \ -H "Content-Type: application/ json" \ -d '{"score":73453}' \
-
你可以使用http客户端api和
setHeader()方法来设置这些headers
标签: java url curl urlconnection