Pour éviter de faire des telnet x 80 puis des GET / HTTP/1.0 etc...

$ sudo apt-get install libwww-perl

$ GET -eH 'Host: www.google.fr' 66.249.93.99  
Cache-Control: private  
Date: Tue, 20 Sep 2005 15:03:00 GMT  
Server: GWS/2.1  
Content-Type: text/html  
Content-Type: text/html; charset=ISO-8859-1  
Client-Date: Tue, 20 Sep 2005 15:02:28 GMT  
Client-Peer: 66.249.93.99:80  
Client-Response-Num: 1  
Client-Transfer-Encoding: chunked  
Cneonction: Close  
Set-Cookie: PREF=ID=bc5cf069f28fb963:TM=1127228579:LM=1127228579:S=Y-O  
_DXml7wEU1c_y; expires=Sun, 17-Jan-2038 19:14:07 GMT; path=/; domain=.google.fr  
Title: Google  

<html><head><meta http-equiv="content-type" content="text/html; charset=ISO-8859-1"><title>Google</title><style><!--  
body,td,a,p,.h{font-family:arial,sans-serif;}  
.h{font-size: 20px;}  
.q{color:#0000cc;}  
//-->  
</style>
Vus : 11
Publié par Uggy : 252