script for the curl command