diff --git a/HowtocURL.md b/HowtocURL.md index 69a98621..ee2b0c66 100644 --- a/HowtocURL.md +++ b/HowtocURL.md @@ -46,7 +46,7 @@ Par défaut, curl ne suit pas les redirections HTTP, il faut l'option `-L` (ou ` $ curl -L http://www.example.com ~~~ -Pour spécifier un User-Agent, `-A` ou `--user-agent`) : +Pour spécifier un User-Agent, utiliser l'option `-A` (ou `--user-agent`) : ~~~ $ curl -A "Mozilla/5.0 (compatible; evolix; http://evolix.com)" http://example.com @@ -59,6 +59,12 @@ $ curl http://www.example.com -H 'Accept: text/plain' $ curl -H 'Accept-Language: en' https://example.com ~~~ +Pour envoyer un cookie dans la requête, utiliser l'option `-b` (ou `--cookie`) : + +~~~ +$ curl http://www.example.com -b 'key=value' +~~~ + Pour l'utilisation d'un proxy : ~~~