> For the complete documentation index, see [llms.txt](https://molla4455.gitbook.io/dev-log/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://molla4455.gitbook.io/dev-log/terminal/curl.md).

# curl

issues a GET request to substack and prints the body.

`$ curl -s http://substack.net`

(The -s gets rid of annoying progress output.)

To see just the headers, use `-I`:

`$ curl -I -s http://substack.net`

Use `-X` to set the http verb (POST) and `-d` to set form parameters:

```
$ curl -X POST http://localhost:5000 -d title=whatever \
-d date=1421044443 -d body='beep boop!'
```

Use `-H` to set header:

```
$ curl -X POST http://localhost:5000 -d title=whatever \
-d date=1421044443 -d body='beep boop!' \
-H cool:beans
```
