From ee195aa155c2e5a2f943db726e4c67581b10456e Mon Sep 17 00:00:00 2001 From: pdiogoantunes Date: Mon, 10 Apr 2017 15:42:47 +0200 Subject: [PATCH] user-agent --- HowtocURL.md | 6 ++++++ 1 file changed, 6 insertions(+) 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.