当前位置:网站首页>Special characters & escapes in bat
Special characters & escapes in bat
2022-08-01 23:10:00 【Purple fire mulberry】
Look at the example first
curl -H "Content-Type:application/json"-X POST-d "{\"value\":\"type=username&username=xxxx0001\"}"http://127.0.0.1:8111/loginbyother//The above command is to wrap the line for the convenience of reading the code, it is actually a whole lineExecuting the above statement in Windows Terminal will always report an error
curl: no URL specified!curl: try 'curl --help' for more informationI always thought it was a problem with quotation marks, so I used various methods to escape the quotation marks, and even used UrlEncode, but it didn't work. Finally, it was determined that it was the problem of the ampersand, because in windows, & means a commandconcatenation, so it must be escaped.
& escape ====> ^&Then modify the code as follows
curl -H "Content-Type:application/json"-X POST-d "{\"value\":\"type=username^&username=xxxx0001\"}"http://127.0.0.1:8111/loginbyother//The above command is to wrap the line for the convenience of reading the code, it is actually a whole lineThis kind of problem is often encountered in the bat file, and you can eat a lot of money and become wiser~
边栏推荐
- 用virtualenv和Virtualenvwrapper虚拟环境管理工具创建虚拟环境
- Deep learning Course2 first week Practical aspects of Deep Learning exercises
- What is CICD excuse me
- JS 数组去重(含简单数组去重、对象数组去重)
- PHP算法之最接近的三数之和
- PostgreSQL 基础--常用命令
- PHP算法之有效的括号
- Wechat Gymnasium Appointment Mini Program Graduation Design Finished Work (4) Opening Report
- Solve the port to take up
- npm npm
猜你喜欢
随机推荐
CF1703G Good Key, Bad Key
Create virtual environments with virtualenv and Virtualenvwrapper virtual environment management tools
sys_kill系统调用
论文解读(GSAT)《Interpretable and Generalizable Graph Learning via Stochastic Attention Mechanism》
6132. 使数组中所有元素都等于零-快速排序法
部门项目源码分享
复现gallerycms字符长度限制短域名绕过
浅析多服务在分布式系统下多事务通信处理机制方案
IDEA常用插件
用virtualenv和Virtualenvwrapper虚拟环境管理工具创建虚拟环境
UML diagram of soft skills
vscode hide menu bar
leetcode刷题
visual studio code multiple editing
最短路模板
xss相关知识点以及从 XSS Payload 学习浏览器解码
避免使用 <b>、<i>、<s> 和 <u> 标签
联邦学习的框架搭建
chrome复制一张图片的base64数据
高效工作文档产出归类









