问题描述
如何在-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.
这篇关于如何在-d参数为curl.exe发送双引号?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!