我使用的Windows wget和我想指定--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用于Windows?我缺少的东西吗?

干杯

安迪

有帮助吗?

解决方案

您可以通过\ e.g前缀来逃避你的大长字符串引号。

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

其他提示

另外使用双引号引号内:

--post-data="big long string with ""quotes"" in it"
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top