使用cmd调用curl吗? [英] Call curl using cmd?

查看:101
本文介绍了使用cmd调用curl吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有以下curl命令,我想将其转换为.bat文件以使用cmd进行调用。

I have the following curl command that I want to convert to .bat file to calling using cmd.

curl -X POST \
  https://api.telerivet.com/v1/projects/PJ331378e28e30b89f/messages/send \
  -H 'Authorization: Basic TFFWcHR6SkxMS0x2a1JwbDBKelBTMExnVHdQbzdybFM6' \
  -H 'Cache-Control: no-cache' \
  -H 'Content-Type: application/json' \
  -H 'Postman-Token: 6fde3920-a30d-4daa-9535-ac6373d492f8' \
  -d '{
    "content": "kjdjefk",
    "to_number": "+6586524931"

}'

但是

推荐答案

在这里:

curl -X POST ^
  https://api.telerivet.com/v1/projects/PJ331378e28e30b89f/messages/send ^
  -H 'Authorization: Basic TFFWcHR6SkxMS0x2a1JwbDBKelBTMExnVHdQbzdybFM6' ^
  -H 'Cache-Control: no-cache' ^
  -H 'Content-Type: application/json' ^
  -H 'Postman-Token: 6fde3920-a30d-4daa-9535-ac6373d492f8' ^
  -d '{^
    "content": "kjdjefk",^
    "to_number": "+6586524931"^
}'

这篇关于使用cmd调用curl吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆