curlie wraps `curl` with modern defaults and `httpie`-like syntax highlighting
---
-## Updating
-
-```bash
-webi curlie@stable
-```
-
-Use the `@beta` tag for pre-releases.
+To update or switch versions, run `webi curlie@stable` (or `@v1.6`, `@beta`,
+etc).
## Cheat Sheet
**JSON** (`=`) is the default encoding for `key=value` pairs.
-## Simple GET
+### Simple GET
```bash
curlie -v example.com
```
-## POST simple JSON with headers
+### POST simple JSON with headers
```bash
curlie -v POST httpbin.org/status/201 "Authorization: Bearer xxxx" "name=John Doe"
```
-## POST large JSON
+### POST large JSON
```bash
curlie -v POST httpbin.org/status/201 "Authorization: Bearer xxxx" -d '
]
'
```
+
+### Spoof Host and SNI
+
+The `--resolve` option is for when you need to test a local service as if it had
+a remote hostname and TLS SNI (or when you want to break things 😈).
+
+```bash
+curlie https://foo.example.com:8443 "Host: foo.example.com" \
+ --resolve foo.example.com:8443:127.0.0.1
+```