nitya vyas wrote: > i m sure he meant "Any" .. not "ant" .... :)
Oh, right. On american keyboards, those two are next to eachother. Thanks for reminding me :-) >>> How can I download a file with HttpClient? Ant example please? >> Are you kidding? HttpClient is a Java API, not an Ant task. >> Read the tutorial. >> http://hc.apache.org/httpclient-3.x/tutorial.html The tutorial explains how to get the data from the server. The section "Read the Response" uses a method that is not exactly recommended and may give you a warning in the logs. The recommended way is to use method.getResponseBodyAsStream() and then read the data from the stream block by block. If you need help in writing it to a file, check the Java Tutorial: http://java.sun.com/docs/books/tutorial/essential/io/index.html hope that helps, Roland --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
