buffa@jessica:~/www/local> telnet www.essi.fr 80 Trying 157.169.25.200... Connected to news-srv.essi.fr. Escape character is '^]'. GET / HTTP/1.0 HTTP/1.0 200 OK Content-type: text/html Server: Roxen·Challenger/1.2beta1 Date: Mon, 19 Jan 1998 10:47:49 GMT Last-Modified: Tue, 22 Apr 1997 07:59:02 GMT MIME-Version: 1.0 Content-length: 1679 <HTML<> ....Document demandé
La réponse est dans le header précédent :
Server: Roxen·Challenger/1.2beta1
HTTP/1.0 200 OK
buffa@jessica:~/www/local> telnet www.essi.fr 80 Trying 157.169.25.200... Connected to news-srv.essi.fr. Escape character is '^]'. GET / HTTP/1.0 If-Modified-Since: Mon, 19 Jan 1998 10:47:49 GMT HTTP/1.0 304 Not Modified Content-type: text/html Server: Roxen·Challenger/1.2beta1 Date: Mon, 19 Jan 1998 10:50:26 GMT Last-Modified: Tue, 22 Apr 1997 07:59:02 GMT MIME-Version: 1.0 Content-length: 1679 Connection closed by foreign host.
buffa@jessica:~/www/local> telnet www.essi.fr 80 Trying 157.169.25.200... Connected to news-srv.essi.fr. Escape character is '^]'. GET toto HTTP/1.0 HTTP/1.0 404 No such file or directory. Content-type: text/html Server: Roxen·Challenger/1.2beta1 Date: Mon, 19 Jan 1998 10:51:20 GMT MIME-Version: 1.0 Content-length: 534 <title>Sorry. I cannot find this resource</title> <h2 align=center><img border=0 align="left" src="/internal-roxen-roxen2"> ...
buffa@jessica:~/www/local> telnet www.essi.fr 80 Trying 157.169.25.200... Connected to news-srv.essi.fr. Escape character is '^]'. GET /images/logoEssi.gif HTTP/1.0 Accept: image/jpg HTTP/1.0 200 OK Date: Mon, 19 Jan 1998 10:52:26 GMT Server: Roxen·Challenger/1.2beta1 Content-type: image/gif Last-Modified: Fri, 07 Jun 1996 12:51:34 GMT MIME-Version: 1.0 Content-length: 10147
GIF89aðn÷¿¿° 0@X4¤Ä|80@8P0(d @l..... binaire de l'image
óòñþö÷þööþõöþô...
binaire de l'image quand même !
HTTP/1.0 200 OK
Content-Encoding: x-gzip
Date: Mon, 19 Jan 1998 10:55:35 GMT
Server: Roxen·Challenger/1.2beta1
Content-type: application/octet-stream
Last-Modified: Mon, 13 Jan 1997 10:03:05 GMT
MIME-Version: 1.0
Content-length: 521
.....
video/mpeg; mpeg_play %s.
application/toto totoet dans $HOME/.mailcap :
application/toto; xless %sAttention : ca ne marchera pas si on accède à un fichier à travers le protocole HTTP, car c'est le serveur qui est unique responsable du typage des données (au travers de son propre fichier mime.conf). En revanche si vous accèdez à un fichier par file: ou ftp:, ca va fonctionner. Pour reconnaître le type .toto, il faudrait rajouter ce type dans le fichier mime.conf du serveur.
qui retourne:
Content-Type: image/gif;qs=0.5
function FindProxyForURL(url, host) { if (dnsDomainIs(host, ".epita.fr")) return "PROXY wwwcache.doc.ic.ac.uk:3128; DIRECT"; else return "DIRECT"; }
application/x-ns-proxy-autoconfig nsc