Split curl command into substrings so variables can be used in params