wget curl post请求

wget --header=“User-Agents: Chrome” --header=“Content-Type: Application/json” --post-data=‘{“url”:“https://zcool-cloud-resource-test.oss-cn-beijing.aliyuncs.com/7f39/0e9e4d/f4c73be0-bc11-4f1a-b88b-7d40e23e47f0.ttf”}’ http://node-express:3000/getFontSvg -q -O -

wget --header=“User-Agents: Chrome” --header=“Content-Type: Application/json” --post-data=‘{“url”:“https://zcool-cloud-resource-test.oss-cn-beijing.aliyuncs.com/7f39/0e9e4d/f4c73be0-bc11-4f1a-b88b-7d40e23e47f0.ttf”}’ http://localhost:3000/getFontSvg -q -O -

wget --header=“Content-Type: Application/json” --post-data “url=https://zcool-cloud-resource-test.oss-cn-beijing.aliyuncs.com/7f39/0e9e4d/f4c73be0-bc11-4f1a-b88b-7d40e23e47f0.ttf” http://node-express:3000/getFontSvg

wget --header ‘content-type:application/json’ --body-data ’
{“url”:“https://zcool-cloud-resource-test.oss-cn-beijing.aliyuncs.com/7f39/0e9e4d/f4c73be0-bc11-4f1a-b88b-7d40e23e47f0.ttf”}
’ http://node-express:3000/getFontSvg

wget --method POST --header ‘Content-Type: application/json;charset=utf-8’ --body-data ‘url=https://zcool-cloud-resource-test.oss-cn-beijing.aliyuncs.com/7f39/0e9e4d/f4c73be0-bc11-4f1a-b88b-7d40e23e47f0.ttf’ ‘http://node-express:3000/getFontSvg’

解决安装curl慢的问题:
sed -i ‘s/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g’ /etc/apk/repositories

curl -X POST ‘http://node-express/getFontSvg’ -H ‘Content-Type: application/json’ -d ‘{“url”: “https://zcool-cloud-resource-test.oss-cn-beijing.aliyuncs.com/7f39/0e9e4d/f4c73be0-bc11-4f1a-b88b-7d40e23e47f0.ttf”}’

curl -X POST ‘https://node-express.in.zcool.cn/getFontSvg’ -H ‘Content-Type: application/json’ -d ‘{“url”: “https://zcool-cloud-resource-test.oss-cn-beijing.aliyuncs.com/7f39/0e9e4d/f4c73be0-bc11-4f1a-b88b-7d40e23e47f0.ttf”}’

你可能感兴趣的:(json)