Share this post on:

Introduction

We can send the SNI without changing our DNS or hosts file with cURL. This is very useful, especially during migrations or testing.

curl -ivkL --resolve example.dev:443:1.2.3.4 https://example.dev 

Explanation

-i show all headers

-v enable verbose

-k skip certificate validation (Optional)

–resolve SNI:Port:IP address

Share this post on:

Leave a Comment

Your email address will not be published. Required fields are marked *