In my case, this seems the best option:
Call the script like:
bash curl.sh -d Remote -a "Moz 123" -r http://localhost http://www.google.com/
You can pick the last argument up like:
url=${!#}
And then the other options using getopts, as above.