Notice
Recent Posts
Recent Comments
Link
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | 5 | 6 | 7 |
| 8 | 9 | 10 | 11 | 12 | 13 | 14 |
| 15 | 16 | 17 | 18 | 19 | 20 | 21 |
| 22 | 23 | 24 | 25 | 26 | 27 | 28 |
| 29 | 30 | 31 |
Tags
- React
- tauri
- docker
- cli
- 절대경로
- getting started
- .dockerignore
- Ollama
- glm-ocr
- Vite
- Webpack
- io
- dockerfile
- path
- html canvas
- Typescript
- qwen3-coder-next
- Docker Compose
- vscode
- 시작하기
- podman
- FileChannel
- Java
- config
- curl
- File
- podman compose
- RandomAccessFile
Archives
- Today
- Total
워로디스
curl 출력 방식 본문
curl은 기본적으로 응답 본문을 stdout에 출력하며, 필요에 따라 -o 옵션으로 파일에 저장하거나 NUL//dev/null로 무시할 수 있습니다.
- 응답 본문: 기본적으로
curl은 서버로부터 받은 응답 본문(response body)을 표준 출력(stdout)에 출력합니다. - 진행 상황 표시(progress meter): 기본적으로 진행률과 같은 메타 정보는
stderr(표준 오류)에 출력됩니다.-s(--silent) 옵션을 사용하면 진행 상황과 오류 메시지 출력이 숨겨집니다.
기본 출력
curl https://example.com
- 응답 본문이 표준 출력으로 표시됩니다.
stdout을 파일로 리디렉션
curl https://example.com> output.txt
stdout을output.txt파일로 리디렉션합니다.
stderr를 리디렉션
curl https://example.com 2> error.log
stderr를error.log파일로 리디렉션합니다.
-o 옵션과 stdout
-o <filename>옵션을 사용하면 응답 본문을 파일로 저장하며, 기본 출력은 비활성화됩니다.- 예시
- 응답 본문이
response.txt에 저장되고, 출력은 없습니다.
- 응답 본문이
curl -o response.txt https://example.com
'정리 > curl' 카테고리의 다른 글
| curl 응답코드만 출력 (0) | 2026.02.06 |
|---|---|
| curl 을 이용한 파일 다운로드 (0) | 2026.02.06 |
