Windows用のwgetの - 引用符で--postデータを使用して
質問
私は、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
は、Windows用のwgetで動作するようになっていますか?私は何かが足りないのですか?
乾杯
アンディ
解決
あなたは\
例えば、それらを付けることによって、あなたの大きくて長い文字列に引用符をエスケープすることができます。
--post-data="big long string with \"quotes\" in it"
他のヒント
また、引用符の内側に二重引用符を使用します:
--post-data="big long string with ""quotes"" in it"
所属していません StackOverflow