I am trying to get the response code of the curl command to a variable and output of the same curl command in a file. Another curl command within a different function will r