在JBoss EAP AS 6.3中使用ant获取URL

我有一个简单的ant任务来获取一个url,并将其保存到一个文件:

<target name="test_xhtml"> <get verbose="on" dest="/tmp/test.xhtml" src="http://localhost:8080/forms/faces/test.xhtml?param=loremipsum" /> </target> 

脚本返回:

 test_xhtml: [get] Getting: http://localhost:8080/forms/faces/test.xhtml?param=loremipsum [get] To: C:/tmp/test.xhtml [get] Error opening connection java.io.IOException: Server returned HTTP response code: 505 for URL: http://localhost:8080/forms/faces/test.xhtml?param=loremipsum [get] Error opening connection java.io.IOException: Server returned HTTP response code: 505 for URL: http://localhost:8080/forms/faces/test.xhtml?param=loremipsum [get] Error opening connection java.io.IOException: Server returned HTTP response code: 505 for URL: http://localhost:8080/forms/faces/test.xhtml?param=loremipsum [get] Can't get http://localhost:8080/forms/faces/test.xhtml?param=loremipsum to C:\tmp\test.xhtml BUILD SUCCESSFUL Total time: 468 milliseconds 

那么,问题是我怎么能得到的url? (可能是JBoss 6.3的一些configuration,因为HTTP 505意味着jboss不会重新configurationant使用的http协议: http http#505