03_Assises_du_Web_Partie_2

03_Assises_du_Web_Partie_2 - CSI 3540 Structures,...

Info iconThis preview shows pages 1–14. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: CSI 3540 Structures, techniques et normes du Web Tuesday, January 19, 2010 Objectifs: Matrise des concepts sur lesquels reposent les technologies du Web, incluant HTTP Bien comprendre les interactions entre les serveurs (httpd) et les clients (navigateurs) Lectures: Web Technologies (2007) 1 Pages 10 32 Assises du Web (Partie 2) Tuesday, January 19, 2010 Plan 1. HTTP 2. URL 3. Encodage des caractres 4. Navigateur/serveur Tuesday, January 19, 2010 HTTP Tuesday, January 19, 2010 HTTP Hypertext Transfer Protocol Protocole de la couche application dvelopp pour le Web Fonctionne avec tous les protocoles de transport fable, mais en pratique il repose sur TCP , au port 80 (ou 8080) RFC 1945 (1996) HTTP/1.0; RFC 2068 (1997) HTTP/1.1; RFC 2616 (1999) Tuesday, January 19, 2010 HTTP Cest un protocole sans tat ( qui ne garde pas de trace du contexte ) HTTP suit un modle requte-rponse Le client envoie une requte Le serveur envoie une rponse La notion dtat (session) est construite au desssus du protocole (par les Servlets, par exemple) Tuesday, January 19, 2010 Tuesday, January 19, 2010 $ telnet www.eiti.uottawa.ca 80 Trying 137.122.89.222... Connected to web0.site.uottawa.ca. Escape character is '^]'. GET /index.html HTTP/1.1 HOST: www.eiti.uottawa.ca Requte Rponse HTTP/1.1 200 OK Date: Sun, 06 Jan 2008 17:44:19 GMT Server: Apache/2.0.59 (FreeBSD) PHP/5.1.6 (...) Last-Modifed: Fri, 28 May 2004 14:11:11 GMT ETag: "114d1b-1a1-ad3ddc0" Accept-Ranges: bytes Content-Length: 417 Content-Type: text/html <html> <head> <title>ITI</title> </head> <body> cole d'ingnierie et de technologie de l'inormation! </body> </html> Tuesday, January 19, 2010 HTTP 0.9 et 1.0 1. Connexion du client au serveur HTTP 2. Envoi du message HTTP requte 3. Rception du message HTTP requte 4. Fermeture de la connexion Tuesday, January 19, 2010 Tuesday, January 19, 2010 Principales tapes 1. Cration dun message requte HTTP laide de lURL fournie par lusager 2. Requte au serveur de nom (DNS) 3. tablir une connexion TCP 4. Envoi du message HTTP requte 5. Rception du message HTTP rponse 6. AfFchage de la rponse (HTML) Tuesday, January 19, 2010 Message HTTP requte Commande URI Version_de_protocole En-tte de requte Corps (possiblement vide) de la requte Ligne de commande Ligne vide GET /index.html HTTP/1.1 HOST: www.eiti.uottawa.ca LEn-tte HOST est ncessaire pour les versions 1.1 et plus. Facilite la mise en place de serveurs virtuels sur un mme serveur HTTP. En labsence de cet en-tte, le serveur retourne un message rponse 400 (Bad Request). Tuesday, January 19, 2010 Message HTTP rponse Version Code-rponse Texte-rponse En-tte de rponse Corps de rponse Ligne vide Ligne de statut HTTP/1.1 200 OK Date: Sun, 06 Jan 2008 17:44:19 GMT Server: Apache/2.0.59 (FreeBSD) PHP/5.1.6 (...) Last-Modifed: Fri, 28 May 2004 14:11:11 GMT ETag: "114d1b-1a1-ad3ddc0"...
View Full Document

Page1 / 71

03_Assises_du_Web_Partie_2 - CSI 3540 Structures,...

This preview shows document pages 1 - 14. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online