Put curlout in the tmp directory
Remove unneccesary declaration