indication SNI
This commit is contained in:
parent
1ecccb97be
commit
f67b786111
|
@ -59,13 +59,13 @@ $ curl -A "Mozilla/5.0 (compatible; evolix; http://evolix.com)" http://example.c
|
||||||
|
|
||||||
Avec cette astuce, inutile de modifier `/etc/hosts`, ce qui est très pratique.
|
Avec cette astuce, inutile de modifier `/etc/hosts`, ce qui est très pratique.
|
||||||
|
|
||||||
Avec un en-tête `Host` forcé :
|
Avec un en-tête `Host` forcé (ne gère pas le SNI) :
|
||||||
|
|
||||||
~~~
|
~~~
|
||||||
$ curl http://192.0.2.1:8080/foo/bar -H 'Host: www.example.com'
|
$ curl http://192.0.2.1:8080/foo/bar -H 'Host: www.example.com'
|
||||||
~~~
|
~~~
|
||||||
|
|
||||||
Avec une résolution forcée (`--resolve`, à partir de 7.21.3) :
|
Avec une résolution forcée (`--resolve`, à partir de 7.21.3, gère le SNI) :
|
||||||
|
|
||||||
~~~
|
~~~
|
||||||
$ curl --resolve www.example.com:443:192.0.2.1 https://www.example.com/foo/bar
|
$ curl --resolve www.example.com:443:192.0.2.1 https://www.example.com/foo/bar
|
||||||
|
|
Loading…
Reference in a new issue