使用《深入理解计算机组成》书里面的Web编程里的代码,了解HTTP和HTML和CGI的原理 ********************************************** TELNET ********************************************** vadmin@vadmin:~$ telnet localhost 1000 Trying ::1... Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. GET / HTTP/1.1 HTTP/1.0 200 OK Server: Tiny Web Server Content-length: 112 Content-type: text/html <html> <head> <title>Google</title> </head> <body> <p>Hi, <p>this is the <B>home.html</B> file. </body> </html> Connection closed by foreign host. vadmin@vadmin:~$ ******************************************* SERVER ******************************************* ^C root@vadmin:/home/vadmin/york/code/netp/tiny# ./tiny 1000 ***buf: GET / HTTP/1.1 end of buf*** ***method:GET; uri:/; version:HTTP/1.1*** ***************************** ***hdrs: