projects
/
webi-installers
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
4b487e4
)
add SNI/Host spoof option
author
AJ ONeal
<aj@therootcompany.com>
Wed, 15 Jul 2020 03:55:09 +0000
(
03:55
+0000)
committer
AJ ONeal
<aj@therootcompany.com>
Wed, 15 Jul 2020 03:55:09 +0000
(
03:55
+0000)
curlie/README.md
patch
|
blob
|
history
diff --git
a/curlie/README.md
b/curlie/README.md
index 8739aa494f2bfa88f4e9379681b33ccd7d3dd1a7..47ce7a7929e535e834f9deca1aa2f80a4d8ae198 100644
(file)
--- a/
curlie/README.md
+++ b/
curlie/README.md
@@
-25,19
+25,19
@@
Use the `@beta` tag for pre-releases.
**JSON** (`=`) is the default encoding for `key=value` pairs.
**JSON** (`=`) is the default encoding for `key=value` pairs.
-## Simple GET
+##
#
Simple GET
```bash
curlie -v example.com
```
```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"
```
```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 '
```bash
curlie -v POST httpbin.org/status/201 "Authorization: Bearer xxxx" -d '
@@
-48,3
+48,13
@@
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:localhost
+```