Make Https Post via Curl within Deployment

Hi,

I’ve created an environment variable with a value like
curl -H “Content-Type:application/json” --data ‘{“build”:true}’ -X POST “https://registry.hub.docker.com/blabla

In my circle.yml file I have the following:
deployment: dockerhub: branch: master commands: - $DOCKER_HUB_TRIGGER

My build keeps failing on this step with

`curl: (1) Protocol "https not supported or disabled in libcurl

$DOCKER_HUB_TRIGGER returned exit code 1`

I’ve tried http and it’s the same. Strangely though I can see it is making the request because my docker hub build is being triggered.

Any ideas how to fix this?

Does it work when you SSH into the build and run the cURL command manually?