美文网首页
shell "org.springframework.web.H

shell "org.springframework.web.H

作者: 洛丽塔的云裳 | 来源:发表于2020-03-26 15:07 被阅读0次

原代码:

changeNumber='test'
req=`curl -X POST -H "'Content-type':'application/json'" -d '{"parameter": "'$changeNumber'", "name": "test", "token": "test", "callback": "" }' http://test.xxx.com/api/tool/210363`
echo $req

修复后正常

-H "'Content-type':'application/json'" 应该是: -H "Content-type: application/json"

changeNumber='test'
req=`curl -X POST -H "Content-type:application/json" -d '{"parameter": "'$changeNumber'", "name": "test", "token": "d6240cf6a5664862b6da674c417ff38f", "callback": "" }' http://kirin.baidu-int.com/api/tool/210363`
echo $req

相关文章

  • shell "org.springframework.web.H

    原代码: 修复后正常 -H "'Content-type':'application/json'" 应该是: -H...

  • Shell 学习

    shell 变量 shell 参数传递 shell 数组 shell 运算符 shell echo 命令 prin...

  • Shell 概述

    学习 Shell 主要包括的内容: Shell 脚本入门 Shell 变量 Shell 内置命令 Shell 运算...

  • Shell 教程

    Shell 变量 Shell 传递参数 Shell 数组 Shell 基本运算符 Shell echo 命令 Sh...

  • shell 第一天

    shell编程初识 1.1 shell编程初识 shell的定义 Shell 是命令解释器 Shell 也是...

  • shell 案例

    Shell编程一 Shell防范ARP攻击 Shell编程二 Shell防范DDos攻击 Shell编程三 ...

  • 【生物信息笔记】shell 脚本 (dry-2)

    shell 和 shell script(脚本)区别: shell 和 shell 脚本是两个不同概念,shell...

  • Linux Shell:基础知识和Shell变量

    摘要:Linux,Shell 整理Shell内容要点: Shell基础知识 Shell变量的类型 Shell变量赋...

  • Shell脚本语言一

    一、语法 格式 运行 Shell变量 Shell字符串 Shell数组 Shell注释 Shell传递参数 She...

  • 使用shell脚本

    使用方式 shell 变量 shell 字符串操作 shell 数组 shell 注释 shell 命令行参数 s...

网友评论

      本文标题:shell "org.springframework.web.H

      本文链接:https://www.haomeiwen.com/subject/fydcuhtx.html