Commande telnet mhz1 80 GET /index.html HTTP

coco77777 Messages postés 79 Statut Membre -  
coco77777 Messages postés 79 Statut Membre -
Bonjour,

Que réalise la commande suivante ?

telnet mhz1 80
GET /index.html HTTP 1.1

Merci d'avance
A voir également:

1 réponse

jisisv Messages postés 3678 Statut Modérateur 935
 
Tu trouveras les explications ici : making-http-requests-via-telnet

En bref, tu te connectes sur le port 80 (HTTP par défaut) de l'hôte mhz1 et tu envoies une requête HTTP (GET, HEAD, POST...)
Par exempmle:
johand@osiris: ~ $ telnet www.yahoo.com 80   
Trying 87.248.112.181...   
Connected to ds-eu-fp3.wa1.b.yahoo.com.   
Escape character is '^]'.   
HEAD / HTTP/1.1   

HTTP/1.1 200 OK   
Date: Wed, 20 Jun 2012 03:55:07 GMT   
P3P: policyref="https://www.verizonmedia.com/policies/", CP="CAO DSP COR CUR ADM DEV TAI PSA PSD IVAi IVDi CONi TELo OTPi OUR DELi SAMi OTRi UNRi PUBi IND PHY ONL UNI PUR FIN COM NAV INT DEM CNT STA POL HEA PRE LOC GOV"   
Cache-Control: private   
X-Frame-Options: SAMEORIGIN   
Set-Cookie: IU=deleted; expires=Tue, 21-Jun-2011 03:55:06 GMT; path=/; domain=.yahoo.com   
Set-Cookie: PH=deleted; expires=Tue, 21-Jun-2011 03:55:06 GMT; path=/; domain=.yahoo.com   
Set-Cookie: MSC=deleted; expires=Tue, 21-Jun-2011 03:55:06 GMT; path=/; domain=.yahoo.com   
Set-Cookie: MSC=t=1340164507X; expires=Thu, 20-Jun-2013 03:55:07 GMT; path=/; domain=.yahoo.com   
Set-Cookie:
<cut> 
Set-Cookie:
<cut>
domain=www.yahoo.com   
Set-Cookie: CH=deleted; expires=Tue, 21-Jun-2011 03:55:06 GMT; path=/; domain=fp.yahoo.com   
Set-Cookie: CH=AgBP4UkQADDREAA0PBAAK+gQAAbPEAAOThAAC5AQAD+MEAAzmxAAKz0QACMi; expires=Fri, 20-Jul-2012 03:55:07 GMT; path=/; domain=.yahoo.com   
Set-Cookie: fpt=d=mFANyQfXecyhS1l3JNhu6M7.qj1uYvHzK6hGlnl0OXvo8tMlyVG294Vt1n.RLJM<<cut> 
Set-Cookie:  
<cut> 
domain=fp.yahoo.com   
Vary: Accept-Encoding   
Content-Type: text/html;charset=utf-8   
Age: 2   
Connection: keep-alive   
Server: YTS/1.20.10


Gates gave ^H sold you the windows.
GNU gave us the whole house.(Alexandrin)
0
coco77777 Messages postés 79 Statut Membre
 
Merci beaucoup!!!
0