Skip to content

Commit f74ed06

Browse files
authored
feat(curl): Making page on curl request with host header (#671)
1 parent 9d5a38d commit f74ed06

2 files changed

Lines changed: 17 additions & 0 deletions

File tree

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
title: Curl request with Host Header
3+
---
4+
5+
## Why
6+
7+
Sometimes when you're testing NGINX or a WAF, you won't have a DNS record set up for it yet, so can't get to the virtual host.
8+
9+
## How
10+
11+
Below is an example making a curl request to an IP address with the Host being `not.relevant-land.fyi`
12+
13+
```shell
14+
curl --header 'Host: not.relevant-land.fyi' http://172.16.0.1
15+
```

mkdocs.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ nav:
1313
- Cloudflared on Ubuntu for ssh: kb/cloudflared/cloudflared-on-ubuntu-for-ssh.md
1414
- Copybara:
1515
- Installing Copybara: kb/copybara/installing-copybara.md
16+
- Curl:
17+
- Curl request with Host Header: kb/curl/curl-request-with-host.md
1618
- Dependabot:
1719
- Ignore terraform module version dependabot: kb/dependabot/ignore-terraform-module-version-dependabot.md
1820
- Disk management:

0 commit comments

Comments
 (0)