user-agent

This commit is contained in:
pdiogoantunes 2017-04-10 15:42:47 +02:00
parent bbff25e369
commit ee195aa155

View file

@ -46,6 +46,12 @@ Spécifier un en-tête HTTP (`-H` ou `--header`) :
$ 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
Avec cette astuce, inutile de modifier `/etc/hosts`, ce qui est très pratique.