Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #41100

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

Path csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!eu.feeder.erje.net!eweka.nl!lightspeed.eweka.nl!194.134.4.91.MISMATCH!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <i@introo.me>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.009
X-Spam-Evidence '*H*': 0.98; '*S*': 0.00; 'subject:file': 0.07; 'subject:How': 0.09; 'python': 0.09; 'apache,': 0.09; 'get.': 0.09; 'subject:set': 0.09; 'subject:skip:m 10': 0.09; 'thx': 0.09; 'cc:addr:python-list': 0.10; 'cases)': 0.16; 'file).': 0.16; 'gpg': 0.16; 'lighttpd,': 0.16; 'nginx,': 0.16; 'subject: \n ': 0.16; 'xavier': 0.16; 'later': 0.16; 'wrote:': 0.17; 'script.': 0.17; 'http': 0.22; 'cc:2**0': 0.23; 'cc:no real name:2**0': 0.24; 'idea': 0.24; 'cc:addr:python.org': 0.25; 'header:In-Reply-To:1': 0.25; 'am,': 0.27; 'message-id:@mail.gmail.com': 0.27; 'post': 0.28; 'cgi': 0.29; 'use?': 0.29; 'url:mailman': 0.29; '(including': 0.30; 'problem.': 0.32; 'url:python': 0.32; 'good.': 0.32; 'launch': 0.32; 'running': 0.32; 'url:listinfo': 0.32; 'received:google.com': 0.34; 'server': 0.35; 'received:209.85': 0.35; 'there': 0.35; 'but': 0.36; 'url:org': 0.36; '12,': 0.36; 'should': 0.36; 'subject:http': 0.37; 'received:209': 0.37; 'subject:: ': 0.38; 'mean': 0.38; 'supports': 0.38; 'some': 0.38; 'url:mail': 0.40; 'easy': 0.60; 'first': 0.61; 'more': 0.63; 'today': 0.67; 'url:me': 0.69; 'sounds': 0.71; '2013': 0.84; 'basically,': 0.84; 'subject:handle': 0.84; 'suits': 0.84; 'wheel': 0.84; 'try.': 0.91
X-Google-DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-received:x-originating-ip:in-reply-to:references :date:message-id:subject:from:to:cc:content-type:x-gm-message-state; bh=UgFXhsa3exAzg76W47HYP0w5SJI7KN1Yeor7/p2+rEM=; b=gP2Ual+y8xhAsYUlk3AkZ3FBxICe1YA8BYDq/CPbS+OlnMznPC1b/1lQ//LM5qzXMA 2VnU9Nv2dL1bUyZP3eqld5mJY49aPSNkC4ZLch2nSndhPnYBmhTP9DU9YGtN1ByoLVfB GK+MsBXL/vLsqsW/DJ+5fi61Lczd4nIl9VCvTxWnzopH3IZIqV+K9ZPVESeHZWEBFn4U SOmAa+iyNQ8nWdKkJ+/e2J5strb3V5mzLnb2quFlcmR2Pfk1AYRZXjmuhb+BfA8LV1WC dtcYDCl3T6fS8qVJWMLNGOiuCuvS3nxzrq3o5jaKDw3YN7gtmBmpxrPjzKxIGJCXd5QE KAcQ==
MIME-Version 1.0
X-Received by 10.182.76.168 with SMTP id l8mr10632871obw.10.1363047415639; Mon, 11 Mar 2013 17:16:55 -0700 (PDT)
X-Originating-IP [202.112.3.7]
In-Reply-To <F6o%s.808817$W71.680461@fed07.iad>
References <mailman.3186.1363012967.2939.python-list@python.org> <F6o%s.808817$W71.680461@fed07.iad>
Date Tue, 12 Mar 2013 08:16:55 +0800
Subject Re: How to quickly set up a multithreaded server that can handle http file post.
From Shiyao Ma <i@introo.me>
To "Xavier L." <newsgroups@afrosoft.ca>
Content-Type multipart/alternative; boundary=f46d044785d90588c004d7af3589
X-Gm-Message-State ALoCoQkR8RTmzvmibsnqFMyOVYBBCBApmwDksU1okP9/PCpTTsUaUKXr4F37iAr3+5TurVsQKzVM
Cc python-list@python.org
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.3211.1363047419.2939.python-list@python.org> (permalink)
Lines 105
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1363047419 news.xs4all.nl 6876 [2001:888:2000:d::a6]:47837
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:41100

Show key headers only | View raw


[Multipart message — attachments visible in raw view] - view raw

Yes, sounds good. I should give it a try.

On Tue, Mar 12, 2013 at 1:02 AM, Xavier L. <newsgroups@afrosoft.ca> wrote:

> 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
> --
> http://mail.python.org/**mailman/listinfo/python-list<http://mail.python.org/mailman/listinfo/python-list>
>



-- 
My gpg pubring is available via: gpg --keyserver
subkeys.pgp.net--recv-keys 307CF736

More on: http://about.me/introom

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

How to quickly set up a multithreaded server that can handle http file post. Shiyao Ma <i@introo.me> - 2013-03-11 22:42 +0800
  Re: How to quickly set up a multithreaded server that can handle http file post. "Xavier L." <newsgroups@afrosoft.ca> - 2013-03-11 13:02 -0400
    Re: How to quickly set up a multithreaded server that can handle http file post. Shiyao Ma <i@introo.me> - 2013-03-12 08:16 +0800

csiph-web