[Solved] curl: (1) Protocol “‘http” not supported or disabled in libcurl

[Solved] curl: (1) Protocol “‘http” not supported or disabled in libcurl:

Issue:

[plain]

curl -d ‘name=AR Rahman’ -d ‘genre=rock’ ‘http://genius-api.com/api/artistInfo’

[/plain]

In windows you should give the URL and post parameter inside the double quotes not single quotes.

Fix:

[plain]

curl -d "name=AR Rahman" -d "genre=rock" "http://genius-api.com/api/artistInfo"

curl -d "name=jai ho" -d "genre=rap" "http://genius-api.com/api/songInfo"

[/plain]

Leave a Reply