On 25 Apr 2012, at 20:15, Sven Van Caekenberghe wrote: > Now, you are right that there should be some convenience method to make that > easier. I'll think about it for a bit and let you know if I can come up with > something.
With these versions: --- Name: Zinc-HTTP-SvenVanCaekenberghe.262 Author: SvenVanCaekenberghe Time: 25 April 2012, 9:19:35 pm UUID: 483455c8-f370-40e8-8848-036044211929 Ancestors: Zinc-HTTP-SvenVanCaekenberghe.261 added ZnClient>>#downloadToFileNamed: --- Name: Zinc-Tests-SvenVanCaekenberghe.135 Author: SvenVanCaekenberghe Time: 25 April 2012, 9:21:15 pm UUID: 364763a4-b7d7-4d0e-b66b-7e117e9194f3 Ancestors: Zinc-Tests-SvenVanCaekenberghe.134 added test for ZnClient>>#downloadToFileNamed: --- you can now do: ZnClient new url: 'http://www.pharo-project.org/images/pharo.png'; downloadToFileNamed: '/tmp/pharo.png'. or even more correctly: ZnClient new systemPolicy; beOneShot; url: 'http://www.pharo-project.org/images/pharo.png'; downloadToFileNamed: '/tmp/pharo.png'. Sven