Web
Aller à la navigation
Aller à la recherche
Cette page sera dédié à divers choses lié au Web.
Test via telnet d'un site web
$ telnet monhost 80
GET /mapage.html HTTP/1.1
host: monhost
Exemple de résultat :
$ telnet www.mn-home.fr 80 Trying 88.169.214.81... Connected to mn-home.fr. Escape character is '^]'. GET /mapage.html HTTP/1.1 host: www.mn-home.fr HTTP/1.1 200 OK Date: Fri, 30 Jan 2015 08:20:23 GMT Server: Apache/2.2.22 (Debian) Last-Modified: Fri, 30 Jan 2015 08:19:36 GMT ETag: "5f6ec-94-50dda43dad600" Accept-Ranges: bytes Content-Length: 148 Vary: Accept-Encoding Content-Type: text/html Via: 1.1 www.mn-home.fr <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>Ma page de test</title> </head><body> Ma page de test. </body></html> Connection closed by foreign host.
Test via openssl d'un site web ssl
$ openssl s_client -connect monhost:443
GET /mapage.html HTTP/1.1
host: monhost