문제

Windows에 WGET를 사용하고 있으며 A를 지정하고 싶습니다. --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 Witch for Windows에서 일하기 위해? 내가 뭔가를 놓치고 있습니까?

건배

앤디

도움이 되었습니까?

해결책

당신은 그것들을 접두사하여 큰 긴 줄의 인용문을 피할 수 있습니다. \ 예를 들어

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

다른 팁

또한 인용문 내부에서 이중 인용문을 사용합니다.

--post-data="big long string with ""quotes"" in it"
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top