From c8f5f9fe95debe579c3ca1cbcd94d38a84e3b342 Mon Sep 17 00:00:00 2001 From: Junv Date: Mon, 11 Feb 2019 16:17:39 +1100 Subject: [PATCH] Update linux.md --- categories/devops/linux.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/categories/devops/linux.md b/categories/devops/linux.md index 9834eab..a17c124 100644 --- a/categories/devops/linux.md +++ b/categories/devops/linux.md @@ -105,6 +105,17 @@ scp your_username@remotehost.edu:foobar.txt /local/dir scp /path/to/local/file user@server:/path/to/remote/file ``` +## Curl + +Curl is a very popular and powerful HTTP client, there is also another very good tool called `httpie` writen in Python which is even eaiser to use. + +The following are some useful commands: + +### Post file +```bash +curl --data "@$(pwd)/fixure/sample.json" --user "foo:bar" localhost:8080/api/abc +``` + ## Package manager * [snap](https://snapcraft.io/)