Coder Social home page Coder Social logo

kyle45 / tinyhttpd Goto Github PK

View Code? Open in Web Editor NEW

This project forked from zhangjunlei26/tinyhttpd

0.0 1.0 0.0 3.08 MB

原项目地址:http://tinyhttpd.sourceforge.net/

License: GNU General Public License v3.0

Makefile 0.56% Perl 4.96% HTML 1.37% C 93.11%

tinyhttpd's Introduction

注释

修改了部分程序,并添加了一些注释---------------------------------画蛇添足

修改日志

2017 02 28 ---- 修改了部分函数

  1. 使用了C语言的字符串切割

2017 02 24 ---- 修改以后在ubuntu下可以运行

  1. 去掉Makefile里的-lsocket,将-lpthread改为-pthread
  2. 修改htdocs中的check.cgi和color.cgi中的perl路径
  3. 添加color.cgi的可执行权限,chmod +x color.cgi
  4. mv README README.md
  5. 修改代码风格,使用TAB进行缩进--------吐槽一下源代码使用一个空格进行缩进
  6. 修改源码,去除了编译的警告

参考资源

  1. 原项目主页
  2. 经典
  3. 参考博客

以下是原文的README文件内容

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.