質問

私は、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"
ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top