Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions docs/kb/curl/curl-request-with-host.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
title: Curl request with Host Header
---

## Why

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.

## How

Below is an example making a curl request to an IP address with the Host being `not.relevant-land.fyi`

```shell
curl --header 'Host: not.relevant-land.fyi' http://172.16.0.1
```
2 changes: 2 additions & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
- Cloudflared on Ubuntu for ssh: kb/cloudflared/cloudflared-on-ubuntu-for-ssh.md
- Copybara:
- Installing Copybara: kb/copybara/installing-copybara.md
- Curl:
- Curl request with Host Header: kb/curl/curl-request-with-host.md
- Dependabot:
- Ignore terraform module version dependabot: kb/dependabot/ignore-terraform-module-version-dependabot.md
- Disk management:
Expand Down Expand Up @@ -256,7 +258,7 @@
- Print secret using gcloud: cloud/gcp/print-secret-gcloud.md
- "Projects, Resources, IAM Users, Roles, Permissions, APIs, and Cloud Shell": cloud/gcp/projects-resources-iam-users-roles-permissions-apis-and-cloud-shell.md
- Re-run startup script on Google Compute Engine: cloud/gcp/re-run-startup-script-google-compute-engine.md
- Remove the lien to allow deletion: cloud/gcp/remove-the-lien-to-allow-deletion.md

Check failure on line 261 in mkdocs.yml

View workflow job for this annotation

GitHub Actions / spell_check

lien ==> line
- "Serverless VPC access for Cloudrun across Projects": cloud/gcp/serverless-vpc-access-for-cloudrun-across-projects.md
- Show BigQuery Table Schema: cloud/gcp/show-bq-table-schema.md
- SSH using IAP: cloud/gcp/ssh-iap.md
Expand Down Expand Up @@ -500,7 +502,7 @@
- navigation.tracking #Anchor links
- navigation.top # back to top of page
- navigation.indexes # Allows index.md pages
#- !ENV [nav, ""]#navigation.expand #Exapnds the navigation in the UI, disabled by default, but enabled in dev

Check failure on line 505 in mkdocs.yml

View workflow job for this annotation

GitHub Actions / spell_check

Exapnds ==> Expands
- content.code.annotate
- content.code.copy
- content.tabs.link
Expand Down