如何发送断线与卷曲? [英] How to send line break with curl?
本文介绍了如何发送断线与卷曲?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我尝试过以下操作,用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屋!
查看全文