Difference between revisions of "VT2020-Http3-Demo"

From air
Jump to navigation Jump to search
Line 14: Line 14:
 
=Tester le HTTP/3=
 
=Tester le HTTP/3=
   
On peut tester avec la librairie [https://github.com/aiortc/aioquic/ aioquic]
+
On peut tester avec la librairie [https://github.com/aiortc/aioquic/ aioquic] écrit en python pour le protocole http/3.
  +
  +
'''Prérequis'''
  +
Linux:
  +
<pre>
  +
sudo apt install libssl-dev python3-dev
  +
  +
  +
//Pour pouvoir lance l'example
  +
pip install -e .
  +
pip install aiofiles asgiref dnslib httpbin starlette wsproto
  +
</pre>
  +
  +
'''Tester l'exemple'''
  +
<pre>
  +
//Lancer le serveur:
  +
python examples/http3_server.py --certificate tests/ssl_cert.pem --private-key tests/ssl_key.pem
  +
  +
//Lancer le client: faire une requête http/3
  +
python examples/http3_client.py --ca-certs tests/pycacert.pem https://localhost:4433/
  +
</pre>

Revision as of 14:18, 23 November 2020

Vérification le protocole utilisé d'un site web

Pour vérifier si une site web utilise le http3:

https://gf.dev/http3-test


On peut aussi vérifier dans le navigateur web:

Dans Chrome/Chromium ou Firefox: Inspecter(ou Crt+Shift+I) --> Onglet Réseau --> Protocole


Tester le HTTP/3

On peut tester avec la librairie aioquic écrit en python pour le protocole http/3.

Prérequis Linux:

sudo apt install libssl-dev python3-dev


//Pour pouvoir lance l'example
pip install -e .
pip install aiofiles asgiref dnslib httpbin starlette wsproto

Tester l'exemple

//Lancer le serveur:
python examples/http3_server.py --certificate tests/ssl_cert.pem --private-key tests/ssl_key.pem

//Lancer le client: faire une requête http/3
python examples/http3_client.py --ca-certs tests/pycacert.pem https://localhost:4433/