如何在-d参数为curl.exe发送双引号? [英] How to send double quote in -d parameter for curl.exe?

查看:811
本文介绍了如何在-d参数为curl.exe发送双引号?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在-d参数中使用curl.exe发送双引号字符。我不想对双引号进行URL编码。因为-d数据需要用双引号括起来,我似乎不能让它工作。

How can I send a double quote char using curl.exe in the -d paramter. I don't want to URL encode the double quote. Since the -d data needs to be surrounded in double quotes, I cannot seem to get it to work.

或者有另一个标志curl.exe告诉它

Or is there another flag for curl.exe that tells it to use a files contents for the whole form post data?

推荐答案

你可以避免使用双引号。你如何做,取决于你的操作系统和shell,你没有指定。在Windows上,您可以使用^作为转义字符。

You can most certainly escape double quotes. How you do that depends on your operating system and shell, which you fail to specify. On Windows, you'd use the ^ as the escape character.

您也可以这样做:

curl [...] -d @filename 

Google和/或man是您的朋友。

Google and/or man is your friend.

http://curl.haxx.se/docs/manpage.html

这篇关于如何在-d参数为curl.exe发送双引号?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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