I am using the following command to download a web file in android emulator
os.execute(string.format("curl -o \'%s\' \'%s\' ",filepath, url))
filepat