From 0af45627b4b8ecfcdc3d62575a1ad6cb3613ae77 Mon Sep 17 00:00:00 2001 From: Gregory Colpart Date: Tue, 11 Feb 2020 15:31:36 +0100 Subject: [PATCH] ajout exemple avec un -H Cookie: --- HowtoHTTP.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/HowtoHTTP.md b/HowtoHTTP.md index db618ef3..3b00099c 100644 --- a/HowtoHTTP.md +++ b/HowtoHTTP.md @@ -189,6 +189,16 @@ Ctrl+d $ echo -n "from=jdoe%40example.com&contenu=Coucou&validation=nospam&soumettre=ok" > /tmp/POST-DATA.txt $ POST http://www.evolix.fr/contacts.html < /tmp/POST-DATA.txt + +$ GET -dUe -H 'Cookie: foo="bar"' https://marsactus.fr/ +GET https://marsactu.fr/ +User-Agent: lwp-request/6.36 libwww-perl/6.36 + +200 OK +Cache-Control: max-age=3600 +Connection: close +Date: Tue, 11 Feb 2020 +[...] ~~~ Note : Attention, pour envoyer interactivement des données en POST, il faut ensuite les valider avec Ctrl+d