Post wget for Windows-使用--用引号发布数据

Post wget for Windows-使用--用引号发布数据,post,wget,Post,Wget,我正在使用wget for Windows,我想指定一个--post data过滤器(并避免使用--post file过滤器),但我很难让它正常工作。这可能是因为双引号内有如下字符串: wget "http://www.somesite.com/wfs" --header="Content-Type: text/xml; charset=UTF-8" --user=username --password=password --no-check-certificate --post-data="b

我正在使用wget for Windows,我想指定一个
--post data
过滤器(并避免使用
--post file
过滤器),但我很难让它正常工作。这可能是因为双引号内有如下字符串:

wget "http://www.somesite.com/wfs" --header="Content-Type: text/xml; charset=UTF-8"
--user=username --password=password --no-check-certificate
--post-data="big long string with "quotes" in it" --output-document=C:\Test.xml
是否有其他人成功获得了
--post data
以在wget for Windows中工作?我错过什么了吗

干杯


Andy

你可以在大长字符串中的引号前面加上
\
来进行转义

--post-data="big long string with \"quotes\" in it"

同时在引号内使用双引号:

--post-data="big long string with ""quotes"" in it"