user-agent
This commit is contained in:
parent
bbff25e369
commit
ee195aa155
|
@ -46,6 +46,12 @@ Spécifier un en-tête HTTP (`-H` ou `--header`) :
|
||||||
$ curl http://www.example.com -H 'Accept: text/plain'
|
$ curl http://www.example.com -H 'Accept: text/plain'
|
||||||
~~~
|
~~~
|
||||||
|
|
||||||
|
Spécifier un user-agent :
|
||||||
|
|
||||||
|
~~~
|
||||||
|
$ curl -A "Mozilla/5.0 (compatible; evolix; http://evolix.com)" http://example.com
|
||||||
|
~~~
|
||||||
|
|
||||||
## Outrepasser le nom de domaine
|
## Outrepasser le nom de domaine
|
||||||
|
|
||||||
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.
|
||||||
|
|
Loading…
Reference in a new issue