http://tonycode.com/wiki/index.php?title=Making_HTTP_requests_via_telnet
peicheng@PCsNB ~/project/c $ telnet tw.yahoo.com 80
Trying 119.160.246.241...
Connected to tw-tpe-fo.fyap.b.yahoo.com.
Escape character is '^]'.
HEAD / HTTP/1.0
HTTP/1.1 200 OK
Date: Fri, 10 Jun 2011 18:13:55 GMT
P3P: policyref="http://info.yahoo.com/w3c/p3p.xml", 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
Connection: close
Content-Type: text/html; charset=utf-8
Connection closed by foreign host.
沒有留言:
張貼留言