Changes command line syntax of test_download.sh

Now uses getopts, is more flexible and allows for POST testing