Tag: curl

发送Content-Type:application / json post与node.js

我们如何在NodeJS中这样做一个HTTP请求? 示例或模块表示赞赏。 curl https://www.googleapis.com/urlshortener/v1/url \ -H 'Content-Type: application/json' \ -d '{"longUrl": "http://www.google.com/"}'