컴퓨터 관련/서버 정보
http 파일 사용시 유용한 커맨드
보뇨
2024. 11. 27. 12:05
반응형
IntelliJ 에서 지원해주지만 나름 괜찮아보여서 정리할겸 글씀
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 32 33 | @server = http://localhost:3000 POST {{server}}/file-upload Content-Type: multipart/form-data; boundary=test-file-upload --test-file-upload Content-Disposition: form-data; name="file"; filename="test.txt" 여기에 텍스트 파일의 내용을 넣을 수 있습니다. --test-file-upload-- ### 실제 파일로 업로드 POST http://localhost:3000/file-upload Content-Type: multipart/form-data; boundary=test-file-upload --test-file-upload Content-Disposition: form-data; name="file"; filename="test.txt" < test.txt --test-file-upload-- ### 사진 업로드 POST http://localhost:3000/file-upload Content-Type: multipart/form-data; boundary=image-file-upload --image-file-upload Content-Disposition: form-data; name="file"; filename="cat.jpg" Content-Type: image/jpeg < cat.jpg --image-file-upload-- | cs |
반응형