TIPS - Curl

De PedroWiki
Révision datée du 26 octobre 2022 à 15:11 par Jules (discussion | contributions) (Page créée avec « = Introduction = This article lists a few ways to call curl, depending on your need. = Curl calls = == Fake the DNS resolution == Use case: * your website is behind a... »)
(diff) ← Version précédente | Voir la version actuelle (diff) | Version suivante → (diff)

Introduction

This article lists a few ways to call curl, depending on your need.

Curl calls

Fake the DNS resolution

Use case:

  • your website is behind a WAF and the FQDN resolves to it instead of the web server directly (the origin).
  • your website is behind a reverse proxy, but you want to access the underlying web service with appropriate host header in your request.
curl --resolv <my.domain>:443:<IP> https://<my.domain>[/<my_uri>]