반응형 cURL1 curl : 자주 활용하는 options linux 환경에서 HTTP Request를 보내고자 할 때, curl은 종종 유용하게 쓰일 수 있다. --help 옵션이나 man page를 통해서 훨씬 많은 옵션을 알 수 있으나, 그 중 유용하게 사용했던 옵션들을 몇 가지 뽑아서 간략한 설명 및 요청 예제를 정리해보려고 한다. Example #1 : POST, form-data, file, header curl --location --request POST 'http://localhost:8080/fileupload/' --header 'request-id: 12345' --form 'uuid=6032dc26-85b5-4808-a2c4-dd7f1d88c2e9' --form 'filepath=@"/home/test/a.jpg"' --form 'type.. 2022. 2. 18. 이전 1 다음 반응형