in reply to Reading img file through URL

$ wget http://domain...../xyz.img
HTH. HAND.

Replies are listed 'Best First'.
Re^2: Reading img file through URL
by elef (Friar) on Jan 23, 2011 at 11:38 UTC
    Seconded. There is no point monkeying around with some other solution when wget just works (on linux). On Windows, you need to supply a wget binary yourself, and on OS X, use curl.
    Finding (and bundling, if you distribute the code) a wget binary is not that big a deal though.
      wget is available for OS X using ports.
        I know, but curl is preinstalled, so it's more convenient.
        The command is easy to look up and it will probably be the same as the wget command, except you have to use -o (lower case) instead of -O (upper case) when you specify the download location and filename. Or maybe even -O will work, I never tried.