首页 > 其他分享 >curl命令post请求

curl命令post请求

时间:2023-08-23 11:57:31浏览次数:38  
标签:请求 xxx Content json curl Type post

一、post formdata

curl -H "Content-Type: multipart/form-data" -H "Authorization: Basic XXXXXXXXXXXXX" -X POST -F 
'username=10000000_kf005' -F 'password=xxxxxxxx' -F 'grant_type=password' -F 'scope=all' "https://xxx.xxx.xxx.xxx:9201/oauth/token" --insecure

二、post json

curl -H "Content-Type: application/json" -H "Authorization: Bearer 3b4873ff-308e-4082-bffe-b76f4a416f8d" -X POST -d 
'{"agentId":"9501","nameCn":"ykfapi-extension","queueIds":"{000001100001011000}","defaultQueue":"000001100001011000","deviceType":1,"enabled":true,"email":"","workPhone":"","priority":0,"tipTime":1,"voiceHelper":0}' https://xxx.xxx.xxx.xxx:9101/extension/insert --insecure

三、get json

curl -H "Content-Type: application/json" -H "Authorization: Bearer 3b4873ff-308e-4082-bffe-b76f4a416f8d" -X GET 
https://xxx.xxx.xxx.xxx:9101/extension/pageSearch --insecure

四、put json

curl -H "Content-Type: application/json" -H "Authorization: Bearer 3b4873ff-308e-4082-bffe-b76f4a416f8d" -X PUT -d '{"id": 3, "enabled":true}' https://xxx.xxx.xxx.xxx:9101/extension/status --insecure

 

标签:请求,xxx,Content,json,curl,Type,post
From: https://www.cnblogs.com/sky-cheng/p/17650721.html

相关文章

  • 6、oracle迁移到postgres-分页问题
    目录oracle迁移到postgres-分页问题1、oracle使用rownum进行分页2、postgres使用limit进行分页3、使用FETCH统一的分页方式oracle迁移到postgres-分页问题1、oracle使用rownum进行分页select*fromss_stuwhererownum<=10;2、postgres使用limit进行分页select*froms......
  • 3、oracle迁移到postgres-执行动态sql传参不同
    目录oracle迁移到postgres-执行动态sql传参不同1、oracle使用的是:12、postgres使用的是$1oracle迁移到postgres-执行动态sql传参不同在sql字符串中,会动态传入值,使用阿拉伯数据定义传参的个数。1、oracle使用的是:1executeimmediate'select*fromsys_stuwherestu_name=......
  • 2、oracle迁移到postgres-事务提交方式不同
    目录oracle迁移到postgres-事务提交方式不同1、oracle2、postgresoracle迁移到postgres-事务提交方式不同1、oracleoracle默认不自动提交事务,需要手动commit2、postgrespostgres默认自动提交事务,不需要手动commit,导致迁移过来的pck如果有commit需要注释掉......
  • 1、oracle迁移到postgres-执行sql方式execute不同
    目录oracle迁移到postgres-执行sql方式execute不同1、oracle使用executeimmediate2、postgres使用executeoracle迁移到postgres-执行sql方式execute不同1、oracle使用executeimmediateexecuteimmediate'sql';2、postgres使用executeexecuteimmediate'sql';......
  • 5、oracle迁移到postgres-oracle中使用的`nvl`函数更改为统一的`coalesce`函数
    目录oracle迁移到postgres-oracle中使用的nvl函数更改为统一的coalesce函数1、oracle的nvl函数2、postgre的coalesce函数oracle迁移到postgres-oracle中使用的nvl函数更改为统一的coalesce函数nvl函数与coalesce函数都是值非空时,给默认值,oracle中也存在coalesce函数1、oracle的......
  • 4、oracle迁移到postgres-oracle中使用的`decode`函数使用`case when`统一语法
    目录oracle迁移到postgres-oracle中使用的decode函数使用casewhen统一语法1、oracle的decode语法2、postgres的casewhenoracle迁移到postgres-oracle中使用的decode函数使用casewhen统一语法oracle中也有使用casewhen语法,使用decode函数比较简洁。1、oracle的decode语法匹......
  • C++ LibCurl 库的使用方法
    LibCurl是一个开源的免费的多协议数据传输开源库,该框架具备跨平台性,开源免费,并提供了包括HTTP、FTP、SMTP、POP3等协议的功能,使用libcurl可以方便地进行网络数据传输操作,如发送HTTP请求、下载文件、发送电子邮件等。它被广泛应用于各种网络应用开发中,特别是涉及到数据传输的场景。......
  • .net 记录http请求
    记录http请求环境.net7一、过滤器(Filter)这个过程用的的是操作过滤器(ActionFilter)二、2.1继承IAsyncActionFilter2.2重写OnActionExecutionAsyncOnActionExecutionAsync-在调用操作方法前调用OnActionExecutionAsync(ActionExecutingContext,ActionExecutionDele......
  • 实现Fetch 请求扩展超时功能
    要实现基本的超时功能其实很简单,只需要使用AbortController这个API,如果你不熟悉它,可以点击链接了解一下/***@description:创建一个fetch函数*@param{*}timeout:传入超时的时间*@return{*}返回一个新的fetch函数*/functioncreateFetch(timeout){//......
  • UE5 PostProcess 三种常用的fullscreen mask
    前言本篇总结了三个常用的mask,若需要更多的mask形状可以去学学SDF函数,这个笔者还在学,有点复杂,等后面有时间在总结一下推导过程叭为什么需要全屏mask在扭曲效果一文中,我们实现了全屏的扭曲效果,但有时我们需要的只是局部扭曲,比如场景四边的边缘并不产生扭曲效果,而在中间产生,这时......