I. Fonctionnement du Web

Modèle client-serveur

Modele client-serveur
French Achilles Last Stand (Own work) [CC BY-SA 3.0], via Wikimedia Commons

URL : Uniform Resource Locator

http://example.com/index.html
  • http:// : protocole
  • example.com : nom du serveur Web
  • /index.html : nom de la ressource

  • dans une barre d'adresse
  • dans un lien hypertexte

HTTP : Hypertext Transfer Protocol

Une petite démo :

telnet example.com 80                     # en HTTP
openssl s_client -connect example.com:443 # en HTTPS

HEAD /index.html HTTP/1.1
host: example.com

GET /index.html HTTP/1.1
host: example.com

HTML : Hypertext Markup Language

<!doctype html>
<html>
<head>
    <title>Example Domain</title>
</head>

<body>
<div>
    <h1>Example Domain</h1>
    <p>This domain is established to be used for illustrative
        examples in documents.
        You may use this domain in examples without prior
        coordination or asking for permission.</p>
    <p><a href="http://www.iana.org/domains/example">More
        information...</a></p>
</div>
</body>
</html>