added the option to use curl through exec()

this enables an async mode; the exec command will run in the background as the script continues execution