ajout exemple avec un -H Cookie:
This commit is contained in:
parent
fce88bb6e5
commit
0af45627b4
10
HowtoHTTP.md
10
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
|
||||
|
|
Loading…
Reference in a new issue