2 커밋 6c4c8d9c4c ... 2d078378e5

작성자 SHA1 메시지 날짜
  NerdRat 2d078378e5 Added some basic curl examples. 1 년 전
  NerdRat 7a7d7b8b0e Added curl useful commands. 1 년 전
1개의 변경된 파일31개의 추가작업 그리고 0개의 파일을 삭제
  1. 31 0
      curl.md

+ 31 - 0
curl.md

@@ -0,0 +1,31 @@
+# Curl useful commands
+
+Simplest way to `GET` data
+
+```bash
+$ curl example.com
+```
+
+Show response header
+
+```bash
+$ curl -i https://example.com
+```
+
+`GET` json and show it nicely
+
+```bash
+$ curl https://example.com/json | jq
+```
+
+`HEAD` only shows the response headers
+
+```bash
+$ curl -I https://example.com
+```
+
+Please follow redirects
+
+```bash
+$ curl -I -L https://example.com/redirected
+```