如何发送断线与卷曲? [英] How to send line break with curl?

查看:122
本文介绍了如何发送断线与卷曲?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试过以下操作,用curl发送换行符,但 \\\
不会被curl解释。

  curl -X PUT -dmy message\\\
http:// localhost:8000 / hello
解决方案

如何发送换行符?有时你想提供要逐字发送的数据。



- data-binary 选项可以。


I've tried the following to send a line break with curl, but \n is not interpreted by curl.

curl -X PUT -d "my message\n" http://localhost:8000/hello

How can I send a line break with curl?

解决方案

Sometimes you want to provide the data to be sent verbatim.

The --data-binary option does that.

这篇关于如何发送断线与卷曲?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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