'(1) Protocol "'http" not supported or disabled in libcurl' 에러

Mingtorr·2021년 3월 19일
0

엘라스틱 서치에 데이터를 올리기 위해 bulk api를 사용하던 중 아래와 같은 오류가 발생하면서 curl 명령이 듣지 않는 것을 발견했습니다.

(1) Protocol "'http" not supported or disabled in libcurl`

입력했던 코드는 다음과 같습니다.

curl 'http://localhost:9200/?pretty'

해결법은 간단합니다. '" 로 변경하면 됩니다. windows에서는 ' 보다 "를 사용해야 한다고 합니다. 즉 코드를 다음과 같이 고치면 됩니다.

curl "http://localhost:9200/?pretty"
profile
츄르 값 벌기 위해 코딩하는 아키텍쳐

0개의 댓글