我们如何在NodeJS中发出这样的HTTP请求?示例或模块表示赞赏.
curl https://www.googleapis.com/urlshortener/v1/url \ -H 'Content-Type: application/json' \ -d '{"longUrl": "http://www.google.com/"}'
post curl node.js
curl ×1
node.js ×1
post ×1