| 옵션 | 설명 | | ---- | ------------------------------ | | `-X` | HTTP 메서드 지정 (GET, POST, PUT 등) | | `-d` | 요청 body에 데이터 추가 (주로 `POST`) | | `-H` | 커스텀 HTTP 헤더 추가 | | `-x` | 프록시 지정 (ex. Burp Suite 연결 시) | | `-i` | 응답 헤더 포함 | | `-L` | 리디렉션 따라감 | | `-k` | HTTPS 인증서 무시 (self-signed 등) | | `-s` | silent mode | | `-G` | GET 요청 명시 | GET 요청 ```bash curl http://example.com curl -s -G http://example.com --data-urlencode 'lang=../../../' ``` POST 요청 with 데이터 ```bash curl -X POST http://example.com/login -d "username=admin&password=1234" ``` POST 요청 with JSON 데이터 ```bash curl -X POST http://example.com/api/login \ -H "Content-Type: application/json" \ -d '{"username":"admin","password":"1234"}' ``` 커스텀 헤더 포함(`-H`) ```bash curl http://example.com/profile \ -H "Authorization: Bearer token123" \ -H "User-Agent: custom-agent" ``` 프록시를 통한 요청(`-x`) Burp Suite등 프록시 툴을 사용할 때 ```bash curl -x http://127.0.0.1:8080 http://example.com ``` 리다이렉션 따라가기(`-L`) ```bash curl -L http://example.com ``` 응답 헤더까지 보기(`-i`) ```bash curl -i http://example.com ```