Make the curl command a config value. Fix logging. Remove protocol.