This is a demo code to download a file pause and resume download