How to quickly set up a multithreaded server that can handle http file post.

Xavier L. newsgroups at afrosoft.ca
Mon Mar 11 13:02:28 EDT 2013


On 13-03-11 10:42 AM, Shiyao Ma wrote:
> Today I come across a problem.
> Basically, my need is that I want to launch a http server that can not
> only support get but also support post (including post file).
> My first idea is to use -m http.sever. However, it only supports get.
> Later I find some one extended basehttpserver and made it  support post.
> However it is not multithreaded.
>
> Is it easy to write a RELIABLE (I mean under normal cases) multithreaded
> server that suits my need.
> Also, are there any already invented wheel I can use?
>
> Thx
>
>
> --
> My gpg pubring is available via: gpg --keyserver subkeys.pgp.net
> <http://subkeys.pgp.net> --recv-keys 307CF736
>
> More on: http://about.me/introom
>
The best would be to use an existing webserver, such as Apache, Nginx, 
Lighttpd, etc. with python running as a fcgi or cgi script.

Those webservers have been tested for longer and there is no need to 
reinvent the wheel.

X



More information about the Python-list mailing list