'http" not supported or disabled in libcurl

I am trying to run a curl command and getting this error:

'http" not supported or disabled in libcurl

I looked where I have curl.exe, found it in C:\Program Files\GDAL and deleted it.

The error persisted. This was curl.exe in C:\Anaconda3\Library\bin, so I deleted it too.

The error still persisted. There was one more curl.exe in the $PATH.

So error is independent of the executable. How can I fix it?

1

1 Answer

Ensure you are supplying curl with double quotes ("), not single quotes (')

Curl in Windows is know to not like single quotes as per (for example) this thread:

D:\nr\platform_installer_win32>curl -X GET ' \ -H "X-Api-Key:${APIKEY}" -i
curl: (1) Protocol "'http" not supported or disabled in libcurl

(...)

I believe the first warning you're seeing is due to wrapping the url in single quotes instead of double.

(from NewRelic forums, emphasis mine)

This also popped up in a QA over on StackOverflow.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like