-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
44 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -55,3 +55,47 @@ Compile for Linux | |
<p> (10) 关闭与浏览器的连接,完成了一次 HTTP 请求与回应,因为 HTTP 是无连接的。</p> | ||
<p><br> | ||
</p> | ||
|
||
以下内容来自源作者: | ||
|
||
This software is copyright 1999 by J. David Blackstone. Permission | ||
is granted to redistribute and modify this software under the terms of | ||
the GNU General Public License, available at http://www.gnu.org/ . | ||
|
||
If you use this software or examine the code, I would appreciate | ||
knowing and would be overjoyed to hear about it at | ||
[email protected] . | ||
|
||
This software is not production quality. It comes with no warranty | ||
of any kind, not even an implied warranty of fitness for a particular | ||
purpose. I am not responsible for the damage that will likely result | ||
if you use this software on your computer system. | ||
|
||
I wrote this webserver for an assignment in my networking class in | ||
1999. We were told that at a bare minimum the server had to serve | ||
pages, and told that we would get extra credit for doing "extras." | ||
Perl had introduced me to a whole lot of UNIX functionality (I learned | ||
sockets and fork from Perl!), and O'Reilly's lion book on UNIX system | ||
calls plus O'Reilly's books on CGI and writing web clients in Perl got | ||
me thinking and I realized I could make my webserver support CGI with | ||
little trouble. | ||
|
||
Now, if you're a member of the Apache core group, you might not be | ||
impressed. But my professor was blown over. Try the color.cgi sample | ||
script and type in "chartreuse." Made me seem smarter than I am, at | ||
any rate. :) | ||
|
||
Apache it's not. But I do hope that this program is a good | ||
educational tool for those interested in http/socket programming, as | ||
well as UNIX system calls. (There's some textbook uses of pipes, | ||
environment variables, forks, and so on.) | ||
|
||
One last thing: if you look at my webserver or (are you out of | ||
mind?!?) use it, I would just be overjoyed to hear about it. Please | ||
email me. I probably won't really be releasing major updates, but if | ||
I help you learn something, I'd love to know! | ||
|
||
Happy hacking! | ||
|
||
J. David Blackstone | ||
|