// Get metadata from http server
System.out.println("--------------------- test3 -----------------------");
Host host = new Host("localhost", "webdav", 8080, "me", "pwd", null, null);
final File fRemoteMeta = File.createTempFile("milton-zsync-remotemeta", null);
String url = host.getHref(Path.path("/source.txt/.zsync"));
host.doGet(url, new StreamReceiver() {
@Override
public void receive(InputStream in) throws IOException {
FileOutputStream fout = new FileOutputStream(fRemoteMeta);
StreamUtils.readTo(in, fout, true, true);