相关疑难解决方法(0)

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

我们如何在NodeJS中发出这样的HTTP请求?示例或模块表示赞赏.

curl https://www.googleapis.com/urlshortener/v1/url \
  -H 'Content-Type: application/json' \
  -d '{"longUrl": "http://www.google.com/"}'
Run Code Online (Sandbox Code Playgroud)

post curl node.js

109
推荐指数
4
解决办法
13万
查看次数

标签 统计

curl ×1

node.js ×1

post ×1