<HttpSimulator>
<!-- HTTP 웹서버 연동 명령 리스트 -->
<CommandList>
<!-- HTTP GET 명령 -->
<Command>
<Url>http://127.0.0.1/</Url>
</Command>
<!-- HTTP POST 명령 -->
<Command>
<Method>POST</Method>
<Url>http://127.0.0.1/login</Url>
<Body>userId=test&passWord=1234</Body>
</Command>
<!-- 수신한 HTTP body 를 파일로 저장하는 명령 -->
<Command>
<Url>http://127.0.0.1/</Url>
<RecvFileName>c:\temp\index.html</RecvFileName>
</Command>
<!-- HTTP POST body 에 저장할 문자열을 출력하는 프로그램을 실행하여서 HTTP POST 명령을 수행한다. -->
<Command>
<Method>POST</Method>
<Url>http://127.0.0.1/login</Url>
<BodyExecute>java PrintLoginText c:\temp\index.html</BodyExecute>
</Command>
<!-- GET 명령: 수신한 HTML 페이지에 존재하는 css, js, img 파일을 모두 다운로드한다. -->
<Command>
<Url>http://127.0.0.1/</Url>
<DownloadAll>true</DownloadAll>
</Command>
</CommandList>
<Log>
<Level Debug="true" Network="false" HttpHeader="true" />
</Log>
</HttpSimulator>
dos> HttpSimulator.exe HttpSimulator.xml