我正在使用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
Run Code Online (Sandbox Code Playgroud)
有没有其他人成功地--post-data在wget for Windows中工作?我错过了什么吗?
干杯
安迪
您可以通过在前面加上\例如,在大长字符串中转义引号
--post-data="big long string with \"quotes\" in it"
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
10270 次 |
| 最近记录: |