0%

python 一句话web服务器

python -m SimpleHTTPServer 9999

访问 http://127.0.0.1:9999

上传可以用http://gitorious.org/droopy

python ~/bin/droopy -m "Hi, it's me Bob. You can send me a file." 8000
Usage: droopy [options] [PORT]

Options:
  -h, --help                            show this help message and exit
  -d DIRECTORY, --directory DIRECTORY   set the directory to upload files to
  -m MESSAGE, --message MESSAGE         set the message
  -p PICTURE, --picture PICTURE         set the picture
  --dl                                  provide download links
  --save-config                         save options in a configuration file
  --delete-config                       delete the configuration file and exit