문서의 선택한 두 판 사이의 차이를 보여줍니다.
양쪽 이전 판 이전 판 다음 판 | 이전 판 다음 판 양쪽 다음 판 | ||
linux:curl [2019/07/24 15:07] kwon37xi |
linux:curl [2022/03/18 12:14] kwon37xi |
||
---|---|---|---|
줄 5: | 줄 5: | ||
* '' | * '' | ||
* '' | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | |||
+ | ===== 순수하게 컨텐츠만 받기 ===== | ||
+ | * curl 컨텐츠만 순수하게 받고, 그 내용에 pipeline 을 수행하려면 아래 옵션을 하는게 좋다. | ||
+ | <code sh> | ||
+ | curl -fsSL "< | ||
+ | </ | ||
===== 인증 ===== | ===== 인증 ===== | ||
줄 12: | 줄 22: | ||
'' | '' | ||
+ | |||
===== method ===== | ===== method ===== | ||
줄 42: | 줄 53: | ||
<code sh> | <code sh> | ||
curl --user myusername: | curl --user myusername: | ||
+ | </ | ||
+ | |||
+ | ===== json ===== | ||
+ | * [[https:// | ||
+ | * '' | ||
+ | < | ||
+ | # --json 은 아래와 동일한 옵션이다. | ||
+ | --data [arg] | ||
+ | --header " | ||
+ | --header " | ||
+ | </ | ||
+ | |||
+ | <code sh> | ||
+ | # 기본 사용법 | ||
+ | curl --json ' | ||
+ | |||
+ | # json 파일 지정 | ||
+ | curl --json @json.txt https:// | ||
+ | |||
+ | # stdin | ||
+ | echo ' | ||
+ | </ | ||
+ | |||
+ | * [[linux: | ||
+ | |||
+ | <code sh> | ||
+ | jo name=daniel tool=curl | curl --json @- https:// | ||
</ | </ | ||