diff --git a/HowtocURL.md b/HowtocURL.md index e2f72ec5..dd3b1f79 100644 --- a/HowtocURL.md +++ b/HowtocURL.md @@ -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.