Re: HTTP server benchmarking/load testing in Python

2023-01-26 Thread Thomas Passin
On 1/26/2023 6:39 PM, Barry wrote: On 26 Jan 2023, at 17:32, Thomas Passin wrote: On 1/26/2023 11:41 AM, Chris Angelico wrote: On Fri, 27 Jan 2023 at 03:34, Thomas Passin wrote: A nice theory but nothing to do with the real world. I've had a number of laptops that overheat (or would, if

Re: HTTP server benchmarking/load testing in Python

2023-01-26 Thread Thomas Passin
On 1/26/2023 10:32 PM, Chris Angelico wrote: On Fri, 27 Jan 2023 at 14:21, Thomas Passin wrote: 2. "What is Tjunction max temperature?" Tjunction max is the maximum thermal junction temperature that a processor will allow prior to using internal thermal control mechanisms to reduce power and li

Re: HTTP server benchmarking/load testing in Python

2023-01-26 Thread Chris Angelico
On Fri, 27 Jan 2023 at 14:21, Thomas Passin wrote: > 2. "What is Tjunction max temperature?" > Tjunction max is the maximum thermal junction temperature that a > processor will allow prior to using internal thermal control mechanisms > to reduce power and limit temperature. Activation of the proce

Re: HTTP server benchmarking/load testing in Python

2023-01-26 Thread Thomas Passin
On 1/26/2023 5:00 PM, Chris Angelico wrote: On Fri, 27 Jan 2023 at 06:54, Thomas Passin wrote: Did you get a warning, or did you just decide to stop the test? (At least) one of the utilities, I forget which one, did show the temperature in a danger zone. I'm very curious as to which utility

Re: HTTP server benchmarking/load testing in Python

2023-01-26 Thread Barry
> On 26 Jan 2023, at 17:32, Thomas Passin wrote: > > On 1/26/2023 11:41 AM, Chris Angelico wrote: >>> On Fri, 27 Jan 2023 at 03:34, Thomas Passin wrote: >>> A nice theory but nothing to do with the real world. I've had a number >>> of laptops that overheat (or would, if I let test program co

Re: HTTP server benchmarking/load testing in Python

2023-01-26 Thread Chris Angelico
On Fri, 27 Jan 2023 at 06:54, Thomas Passin wrote: > > Did you get a warning, or did you just decide to stop the test? > > (At least) one of the utilities, I forget which one, did show the > temperature in a danger zone. I'm very curious as to which utility, and on what basis it called it "danger

Re: HTTP server benchmarking/load testing in Python

2023-01-26 Thread Thomas Passin
On 1/26/2023 12:57 PM, Chris Angelico wrote: On Fri, 27 Jan 2023 at 04:31, Thomas Passin wrote: On 1/26/2023 11:41 AM, Chris Angelico wrote: On Fri, 27 Jan 2023 at 03:34, Thomas Passin wrote: A nice theory but nothing to do with the real world. I've had a number of laptops that overheat (o

Re: HTTP server benchmarking/load testing in Python

2023-01-26 Thread Chris Angelico
On Fri, 27 Jan 2023 at 04:31, Thomas Passin wrote: > > On 1/26/2023 11:41 AM, Chris Angelico wrote: > > On Fri, 27 Jan 2023 at 03:34, Thomas Passin wrote: > >> A nice theory but nothing to do with the real world. I've had a number > >> of laptops that overheat (or would, if I let test program co

Re: HTTP server benchmarking/load testing in Python

2023-01-26 Thread Thomas Passin
On 1/26/2023 11:41 AM, Chris Angelico wrote: On Fri, 27 Jan 2023 at 03:34, Thomas Passin wrote: A nice theory but nothing to do with the real world. I've had a number of laptops that overheat (or would, if I let test program continue) running this test program. Define "overheat". If all you'

Re: HTTP server benchmarking/load testing in Python

2023-01-26 Thread Grant Edwards
On 2023-01-26, Thomas Passin wrote: > On 1/26/2023 11:02 AM, Grant Edwards wrote: > >[...] > >> A properly designed laptop with a non-broken OS will not overheat >> regardless of the computing load you throw at it. The fan might get >> annoying loud, but if it overheats either your hardware or OS

Re: HTTP server benchmarking/load testing in Python

2023-01-26 Thread Chris Angelico
On Fri, 27 Jan 2023 at 03:34, Thomas Passin wrote: > A nice theory but nothing to do with the real world. I've had a number > of laptops that overheat (or would, if I let test program continue) > running this test program. Define "overheat". If all you're saying is "the fan began to whine and I

Re: HTTP server benchmarking/load testing in Python

2023-01-26 Thread Thomas Passin
On 1/26/2023 11:02 AM, Grant Edwards wrote: On 2023-01-26, Thomas Passin wrote: On 1/25/2023 7:38 PM, Peter J. Holzer wrote: On 2023-01-25 16:30:56 -0500, Thomas Passin wrote: Great! Don't forget what I said about potential overheating if you hit the server with as many requests as it can ha

Re: HTTP server benchmarking/load testing in Python

2023-01-26 Thread Dino
On 1/25/2023 4:30 PM, Thomas Passin wrote: On 1/25/2023 3:29 PM, Dino wrote: Great!  Don't forget what I said about potential overheating if you hit the server with as many requests as it can handle. Noted. Thank you. -- https://mail.python.org/mailman/listinfo/python-list

Re: HTTP server benchmarking/load testing in Python

2023-01-26 Thread Benjamin Schollnick
> On Jan 26, 2023, at 11:02 AM, Grant Edwards wrote: > > On 2023-01-26, Thomas Passin wrote: >> On 1/25/2023 7:38 PM, Peter J. Holzer wrote: >>> On 2023-01-25 16:30:56 -0500, Thomas Passin wrote: Great! Don't forget what I said about potential overheating if you hit the server with

Re: HTTP server benchmarking/load testing in Python

2023-01-26 Thread Grant Edwards
On 2023-01-26, Thomas Passin wrote: > On 1/25/2023 7:38 PM, Peter J. Holzer wrote: >> On 2023-01-25 16:30:56 -0500, Thomas Passin wrote: >>> Great! Don't forget what I said about potential overheating if you >>> hit the server with as many requests as it can handle. >> >> Frankly, if you can ove

Re: HTTP server benchmarking/load testing in Python

2023-01-26 Thread Thomas Passin
On 1/25/2023 11:23 PM, Dino wrote: On 1/25/2023 3:27 PM, Dino wrote: On 1/25/2023 1:33 PM, orzodk wrote: I have used locust with success in the past. https://locust.io First impression, exactly what I need. Thank you Orzo! the more I learn about Locust and I tinker with it, the more I lov

Re: HTTP server benchmarking/load testing in Python

2023-01-25 Thread Dino
On 1/25/2023 3:27 PM, Dino wrote: On 1/25/2023 1:33 PM, orzodk wrote: I have used locust with success in the past. https://locust.io First impression, exactly what I need. Thank you Orzo! the more I learn about Locust and I tinker with it, the more I love it. Thanks again. -- https://mai

Re: HTTP server benchmarking/load testing in Python

2023-01-25 Thread Thomas Passin
On 1/25/2023 8:36 PM, Chris Angelico wrote: On Thu, 26 Jan 2023 at 12:06, Thomas Passin wrote: On 1/25/2023 7:38 PM, Peter J. Holzer wrote: On 2023-01-25 16:30:56 -0500, Thomas Passin wrote: Great! Don't forget what I said about potential overheating if you hit the server with as many reque

Re: HTTP server benchmarking/load testing in Python

2023-01-25 Thread Chris Angelico
On Thu, 26 Jan 2023 at 12:06, Thomas Passin wrote: > > On 1/25/2023 7:38 PM, Peter J. Holzer wrote: > > On 2023-01-25 16:30:56 -0500, Thomas Passin wrote: > >> Great! Don't forget what I said about potential overheating if you > >> hit the server with as many requests as it can handle. > > > > Fr

Re: HTTP server benchmarking/load testing in Python

2023-01-25 Thread Thomas Passin
On 1/25/2023 7:38 PM, Peter J. Holzer wrote: On 2023-01-25 16:30:56 -0500, Thomas Passin wrote: Great! Don't forget what I said about potential overheating if you hit the server with as many requests as it can handle. Frankly, if you can overheat a server by hitting it with HTTP requests, get

Re: HTTP server benchmarking/load testing in Python

2023-01-25 Thread Peter J. Holzer
On 2023-01-25 16:30:56 -0500, Thomas Passin wrote: > Great! Don't forget what I said about potential overheating if you > hit the server with as many requests as it can handle. Frankly, if you can overheat a server by hitting it with HTTP requests, get better hardware and/or put it into a place w

Re: HTTP server benchmarking/load testing in Python

2023-01-25 Thread Thomas Passin
On 1/25/2023 3:29 PM, Dino wrote: On 1/25/2023 1:21 PM, Thomas Passin wrote: I actually have a Python program that does exactly this. Thank you, Thomas. I'll check out Locust, mentioned by Orzodk, as it looks like a mature library that appears to do exactly what I was hoping. Great! Don

Re: HTTP server benchmarking/load testing in Python

2023-01-25 Thread Dino
On 1/25/2023 1:21 PM, Thomas Passin wrote: I actually have a Python program that does exactly this. Thank you, Thomas. I'll check out Locust, mentioned by Orzodk, as it looks like a mature library that appears to do exactly what I was hoping. -- https://mail.python.org/mailman/listinfo

Re: HTTP server benchmarking/load testing in Python

2023-01-25 Thread Dino
On 1/25/2023 1:33 PM, orzodk wrote: I have used locust with success in the past. https://locust.io First impression, exactly what I need. Thank you Orzo! -- https://mail.python.org/mailman/listinfo/python-list

Re: HTTP server benchmarking/load testing in Python

2023-01-25 Thread orzodk
Dino writes: > Hello, I could use something like Apache ab in Python ( > https://httpd.apache.org/docs/2.4/programs/ab.html ). > > The reason why ab doesn't quite cut it for me is that I need to define > a pool of HTTP requests and I want the tool to run those (as opposed > to running the same re

Re: HTTP server benchmarking/load testing in Python

2023-01-25 Thread Thomas Passin
On 1/25/2023 10:53 AM, Dino wrote: Hello, I could use something like Apache ab in Python ( https://httpd.apache.org/docs/2.4/programs/ab.html ). The reason why ab doesn't quite cut it for me is that I need to define a pool of HTTP requests and I want the tool to run those (as opposed to run

HTTP server benchmarking/load testing in Python

2023-01-25 Thread Dino
Hello, I could use something like Apache ab in Python ( https://httpd.apache.org/docs/2.4/programs/ab.html ). The reason why ab doesn't quite cut it for me is that I need to define a pool of HTTP requests and I want the tool to run those (as opposed to running the same request over and over

Re: Run an http server on Apache without wsgi?

2014-09-05 Thread dieter
"Frank Millman" writes: > My AccInABox project runs an http server. Previously I used the cherry.py > wsgiserver, but I have now switched to asyncio. > > I tried to use the wsgi interface, but I have a particular requirement and > found that wsgi got in the way, so I

Run an http server on Apache without wsgi?

2014-09-05 Thread Frank Millman
Hi all My AccInABox project runs an http server. Previously I used the cherry.py wsgiserver, but I have now switched to asyncio. I tried to use the wsgi interface, but I have a particular requirement and found that wsgi got in the way, so I dropped it and now handle all requests directly

Re: Is there anyway to use urllib2 to download a file from http server?

2011-09-10 Thread Abhijeet Mahagaonkar
I guess urlretrieve() would do the job -AB On Sat, Sep 10, 2011 at 9:11 PM, crow wrote: > As the title. > > Or is there other module that can handle this task? > > Many thanks in advance > -- > http://mail.python.org/mailman/listinfo/python-list > -- http://mail.python.org/mailman/listinfo/pyt

Re: Is there anyway to use urllib2 to download a file from http server?

2011-09-10 Thread Stefan Behnel
crow, 10.09.2011 17:41: As the title. Or is there other module that can handle this task? Did you notice that is has documentation? http://docs.python.org/library/urllib2.html#examples Stefan -- http://mail.python.org/mailman/listinfo/python-list

Is there anyway to use urllib2 to download a file from http server?

2011-09-10 Thread crow
As the title. Or is there other module that can handle this task? Many thanks in advance -- http://mail.python.org/mailman/listinfo/python-list

Re: parse GET/POST data on simple http server

2011-02-03 Thread Markus
On Feb 3, 9:35 am, Chris Rebert wrote: > On Thu, Feb 3, 2011 at 12:15 AM, Markus wrote: > > Hi, > > > As a beginner in python, I am looking for example code that would help > > me understand how to > > code following idea: > > 1. Start minimal http serve

Re: parse GET/POST data on simple http server

2011-02-03 Thread Chris Rebert
On Thu, Feb 3, 2011 at 12:15 AM, Markus wrote: > Hi, > > As a beginner in python, I am looking for example code that would help > me understand how to > code following idea: > 1. Start minimal http server http://docs.python.org/library/basehttpserver.html http://docs.

Re: parse GET/POST data on simple http server

2011-02-03 Thread Corey Richardson
On 02/03/2011 03:15 AM, Markus wrote: > Hi, > > As a beginner in python, I am looking for example code that would help > me understand how to > code following idea: > 1. Start minimal http server > 2. Send GET or POST data (url encoded, or from form) - example > Name=&q

Re: parse GET/POST data on simple http server

2011-02-03 Thread Corey Richardson
On 02/03/2011 03:15 AM, Markus wrote: > Hi, > > As a beginner in python, I am looking for example code that would help > me understand how to > code following idea: > 1. Start minimal http server > 2. Send GET or POST data (url encoded, or from form) - example > Name=&q

parse GET/POST data on simple http server

2011-02-03 Thread Markus
Hi, As a beginner in python, I am looking for example code that would help me understand how to code following idea: 1. Start minimal http server 2. Send GET or POST data (url encoded, or from form) - example Name="Foo" 3. Analyze the GET/POST variable value on server and match to diffe

Re: A http server

2011-01-28 Thread Diez B. Roggisch
Back9 writes: > Hi, > I'm trying to set up a http server to handle a single POST request. > That POST request is to upload a huge file and the server is supposed > to handle it with the just POST request. > With my python sample code, multiple post requests are working well,

A http server

2011-01-25 Thread Back9
Hi, I'm trying to set up a http server to handle a single POST request. That POST request is to upload a huge file and the server is supposed to handle it with the just POST request. With my python sample code, multiple post requests are working well, but that is not my solution. I need a s

Re: Toy http server

2010-12-22 Thread MRAB
On 22/12/2010 22:34, Stefan Sonnenberg-Carstens wrote: Sorry, this one is cross post. I posted my question below some time ago to then jython ml, because this hit me first with jython. Anyway, time passed, problem not solved. So, I'd like to know if some of you know where my error lies: [snip]

Toy http server

2010-12-22 Thread Stefan Sonnenberg-Carstens
mine from the past. It's a toy http server: import socket import select import sys import time srv = socket.socket(socket.AF_INET,socket.SOCK_STREAM) srv.setblocking(0) srv.setsockopt(socket.SOL_SOCKET,socket.SO_REUSEADDR,True) # Not sure if this is needed. I only remember I've started

Strategies for unit testing an HTTP server.

2010-11-29 Thread Alice Bevan–McGregor
Hello! Two things are missing from the web server I've been developing before I can release 1.0: unit tests and documentation. Documentation being entirely my problem, I've run into a bit of a snag with unit testing; just how would you go about it? Specifically, I need to test things like H

Re: multitask http server (single-process multi-connection HTTP server)

2010-07-15 Thread lkcl
nnection results in an HTTP/1.1 proxy connection with Connection: Keep-Alive set. so, even if the user's browser drops the connection, the proxy permanently keeps open the connection to the upstream HTTP server. in the case of the standard SimpleHTTPServer.py and so on that results in the handle_

Re: multitask http server (single-process multi-connection HTTP server)

2010-07-13 Thread Luke Kenneth Casson Leighton
On Tue, Jul 13, 2010 at 1:30 AM, Tim Wintle wrote: > On Mon, 2010-07-12 at 23:28 +, Luke Kenneth Casson Leighton wrote: >> On Mon, Jul 12, 2010 at 10:13 PM, geremy condra wrote: >> > On Mon, Jul 12, 2010 at 4:59 PM, lkcl wrote: >> >> there probably exist perfectly good web frameworks that ar

Re: multitask http server (single-process multi-connection HTTP server)

2010-07-13 Thread Tim Wintle
On Mon, 2010-07-12 at 23:28 +, Luke Kenneth Casson Leighton wrote: > On Mon, Jul 12, 2010 at 10:13 PM, geremy condra wrote: > > On Mon, Jul 12, 2010 at 4:59 PM, lkcl wrote: > >> there probably exist perfectly good web frameworks that are capable of > >> doing this sort of thing: i feel certai

Re: multitask http server (single-process multi-connection HTTP server)

2010-07-12 Thread lkcl
On Jul 12, 9:52 pm, Gelonida wrote: > Hi lkcl, > > Do you have any documentation or overview for your project? git clone git://pyjs.org/git/multitaskhttpd.git i only started it today, but yes, there's a README. the primary reason it's being developed is because GNUmed are looking to create a

Re: multitask http server (single-process multi-connection HTTP server)

2010-07-12 Thread Luke Kenneth Casson Leighton
On Mon, Jul 12, 2010 at 10:13 PM, geremy condra wrote: > On Mon, Jul 12, 2010 at 4:59 PM, lkcl wrote: >> for several reasons, i'm doing a cooperative multi-tasking HTTP >> server: >>  git clone git://pyjs.org/git/multitaskhttpd.git >> >> there probably ex

Re: multitask http server (single-process multi-connection HTTP server)

2010-07-12 Thread geremy condra
On Mon, Jul 12, 2010 at 4:59 PM, lkcl wrote: > for several reasons, i'm doing a cooperative multi-tasking HTTP > server: >  git clone git://pyjs.org/git/multitaskhttpd.git > > there probably exist perfectly good web frameworks that are capable of > doing this sort of thi

Re: multitask http server (single-process multi-connection HTTP server)

2010-07-12 Thread Gelonida
ve multi-tasking HTTP > server: > git clone git://pyjs.org/git/multitaskhttpd.git > > there probably exist perfectly good web frameworks that are capable of > doing this sort of thing: i feel certain that twisted is one of them. > however, the original author of rtmplite decided t

multitask http server (single-process multi-connection HTTP server)

2010-07-12 Thread lkcl
for several reasons, i'm doing a cooperative multi-tasking HTTP server: git clone git://pyjs.org/git/multitaskhttpd.git there probably exist perfectly good web frameworks that are capable of doing this sort of thing: i feel certain that twisted is one of them. however, the original auth

Re: HTTP server + SQLite?

2010-05-04 Thread Terry Reedy
On 5/4/2010 2:07 AM, Bryan wrote: The SQLite developers state the situation brilliantly at http://www.sqlite.org/whentouse.html: For future reference, that link does not work with Thunderbird. This one does. http://www.sqlite.org/whentouse.html When posting links, best to put them on a lin

Re: HTTP server + SQLite?

2010-05-04 Thread Gilles Ganault
On Mon, 3 May 2010 23:07:08 -0700 (PDT), Bryan wrote: >I love SQLite because it solves problems I actually have. For the vast >majority of code I write, "lite" is a good thing, and lite as it is, >SQLite can handle several transactions per second. I give SQLite a >file path and in a split second I

Re: HTTP server + SQLite?

2010-05-03 Thread Bryan
John Nagle wrote: > [...] SQLite really > is a "lite" database.  Although there's good read concurrency, multiple > updates from multiple processes tend to result in sizable delays, since > the locking is via file locks and wait/retry logic. True, and I have other gripes about SQLite, but I've fal

Re: HTTP server + SQLite?

2010-05-03 Thread John Nagle
Gilles Ganault wrote: Hello I'd like to build a prototype that will combine a web server as front-end (it must support GZIPping data to the remote client when there are a lot of data to return), and SQLite as back-end, call the server from a VB.Net application, and see how well this works. I wan

Re: HTTP server + SQLite?

2010-05-03 Thread lbolla
On May 3, 8:46 am, Gilles Ganault wrote: > Hello > > I'd like to build a prototype that will combine a web server as > front-end (it must support GZIPping data to the remote client when > there are a lot of data to return), and SQLite as back-end, call the > server from a VB.Net application, and s

Re: HTTP server + SQLite?

2010-05-03 Thread Gilles Ganault
On Mon, 03 May 2010 11:51:41 +0200, Helmut Jarausch wrote: >http://www.karrigell.fr/doc/ Thanks for the tip. -- http://mail.python.org/mailman/listinfo/python-list

Re: HTTP server + SQLite?

2010-05-03 Thread Nat
interesting natalie5...@hotmail.co.jp natalie53...@yahoo.co.jp natalie5...@gmail.com wlipgf...@jupiter.ocn.ne.jp natalie5...@mbr.nifty.com natalie5...@xqg.biglobe.ne.jp natalie5...@zpost.plala.or.jp -- http://mail.python.org/mailman/listinfo/python-list

Re: HTTP server + SQLite?

2010-05-03 Thread Helmut Jarausch
On 05/03/10 09:46, Gilles Ganault wrote: > Hello > > I'd like to build a prototype that will combine a web server as > front-end (it must support GZIPping data to the remote client when > there are a lot of data to return), and SQLite as back-end, call the > server from a VB.Net application, and s

Re: HTTP server + SQLite?

2010-05-03 Thread Chris Rebert
plication. This > is just for a proof-of-concept, so it doesn't need to be > shipping-quality. If your want to write a basic/low-level HTTP server: http://docs.python.org/library/basehttpserver.html Looks like you'd use HTTPServer and a custom subclass of BaseHTTPRequestHandler. I

Re: HTTP server + SQLite?

2010-05-03 Thread alex23
Gilles Ganault wrote: > I'm no Python expert, so would appreciate any information on how to > combine a web server and SQLite into a single Python application. Hey Gilles, I'm a fan of the http framework, CherryPy[1]. Very quick and easy to get something up and running. The site also has some id

HTTP server + SQLite?

2010-05-03 Thread Gilles Ganault
Hello I'd like to build a prototype that will combine a web server as front-end (it must support GZIPping data to the remote client when there are a lot of data to return), and SQLite as back-end, call the server from a VB.Net application, and see how well this works. I want to see if performance

Re: urllib2 httplib.BadStatusLine exception while opening a page on an Oracle HTTP Server

2009-03-01 Thread ak
_fileobject.readline()) function.  For me it only fails > sometimes. > > This behavior is only observed on Windows, Python 2.5.  Running it on > Mac OS X, Python 2.5 yielded no problems. > > On Jan 19, 3:48 pm, ak wrote: > > > On Jan 19, 10:00 pm, ak wrote: > >

Re: urllib2 httplib.BadStatusLine exception while opening a page on an Oracle HTTP Server

2009-02-19 Thread O Peng
ac OS X, Python 2.5 yielded no problems. On Jan 19, 3:48 pm, ak wrote: > On Jan 19, 10:00 pm, ak wrote: > > > > > Hi everyone, > > > I have a problem with urllib2 on this particular url, hosted on an > > Oracle HTTP Server > > >http://www.orange.sk/eshop/

Re: urllib2 httplib.BadStatusLine exception while opening a page on an Oracle HTTP Server

2009-01-21 Thread ak
On Jan 20, 1:14 am, Steven D'Aprano wrote: > On Mon, 19 Jan 2009 13:00:44 -0800, ak wrote: > > Hi everyone, > > > I have a problem with urllib2 on this particular url, hosted on an > > Oracle HTTP Server > > >http://www.orange.sk/eshop/sk/portal/catalog.

Re: urllib2 httplib.BadStatusLine exception while opening a page on an Oracle HTTP Server

2009-01-19 Thread Steven D'Aprano
On Mon, 19 Jan 2009 13:00:44 -0800, ak wrote: > Hi everyone, > > I have a problem with urllib2 on this particular url, hosted on an > Oracle HTTP Server > > http://www.orange.sk/eshop/sk/portal/catalog.html? type=post&subtype=phone&null > > which gets 302 redir

Re: urllib2 httplib.BadStatusLine exception while opening a page on an Oracle HTTP Server

2009-01-19 Thread ak
On Jan 19, 10:00 pm, ak wrote: > Hi everyone, > > I have a problem with urllib2 on this particular url, hosted on an > Oracle HTTP Server > > http://www.orange.sk/eshop/sk/portal/catalog.html?type=post&subtype=p... > > which gets 302 redirected > tohttps://www.

urllib2 httplib.BadStatusLine exception while opening a page on an Oracle HTTP Server

2009-01-19 Thread ak
Hi everyone, I have a problem with urllib2 on this particular url, hosted on an Oracle HTTP Server http://www.orange.sk/eshop/sk/portal/catalog.html?type=post&subtype=phone&null which gets 302 redirected to https://www.orange.sk/eshop/sk/catalog/post/phones.html, after setting a cookie

http server class that lets me open socket?

2008-07-22 Thread mh
I'm writing a select-based server, and some of the client connections will want to send an xml-rpc request. Is there a class in the http hierarchy that will allow me to manage a socket, and allow me to instantiate the class like myhttpserver = SomeHTTPServer(mysocket) and then let me call so

http server performance

2008-03-04 Thread bharath venkatesh
implement concurrent serving to clients i used threaded http server like this class HTTPServer(SocketServer.ThreadingMixIn,BaseHTTPServer.HTTPServer): pass class RequestHandler(BaseHTTPServer.BaseHTTPRequestHandler): def do_GET(self): print "received connection

Re: threaded http server

2008-02-20 Thread Steve Holden
bharath venkatesh wrote: > hi, > will this twisted,turbo gear etc help me to create a http server that > can serve multiple clients concurrently Yes. Google for the projects and do some reading, they are all serving large web sites with sometimes havy demand. > and also the

Re: threaded http server

2008-02-20 Thread bharath venkatesh
> bharath venkatesh wrote: > > hi, > > will this twisted,turbo gear etc help me to create a http server that > can > > serve multiple clients concurrently > > and also the http server which i want to create in my project will not > be > > doing any IO (it

Re: threaded http server

2008-02-20 Thread Christian Heimes
bharath venkatesh wrote: > hi, > will this twisted,turbo gear etc help me to create a http server that can > serve multiple clients concurrently > and also the http server which i want to create in my project will not be > doing any IO (it is not like frontend and backend )..

Re: threaded http server

2008-02-20 Thread bharath venkatesh
hi, will this twisted,turbo gear etc help me to create a http server that can serve multiple clients concurrently and also the http server which i want to create in my project will not be doing any IO (it is not like frontend and backend ).. but it will act as a image_proxy_server i.e when a

Re: threaded http server

2008-02-20 Thread Christian Heimes
bharath venkatesh wrote: > hi >i want to create fast n efficient http server which serve multiple > client concurrently .. so i thought of threading the http server using Threads ain't efficient for IO bound problems like a HTTP server. Most OSs have far better ways to deal

Re: threaded http server

2008-02-20 Thread Steve Holden
bharath venkatesh wrote: > hi >i want to create fast n efficient http server which serve multiple > client concurrently .. so i thought of threading the http server using > > class HTTPServer(SocketServer.ThreadingMixIn, BaseHTTPServer.HTTPServer): > pass: >

threaded http server

2008-02-20 Thread bharath venkatesh
hi i want to create fast n efficient http server which serve multiple client concurrently .. so i thought of threading the http server using class HTTPServer(SocketServer.ThreadingMixIn, BaseHTTPServer.HTTPServer): pass: as this creates an threaded version of http server ... but i

Re: Http server

2006-12-19 Thread Gert Cuykens
Does anybody know how to redirect a post request ? i have a js file that does a post request to a /php/action.php file and i would like for the secretary to just do the action method instead that is defined in her python Http class book, so i can run both php and python without changing the static

Re: Http server

2006-12-19 Thread Gert Cuykens
> > The cute secretary's name is "cherrypy.tools.staticdir". > > Check out her resume at http://www.cherrypy.org/wiki/StaticContent > > I think i am in love :) Cant believe this just works out import os.path import cherrypy pwd = os.path.dirname(os.path.abspath(__file__)) class Http: _cp_c

Re: Http server

2006-12-19 Thread Gert Cuykens
> The cute secretary's name is "cherrypy.tools.staticdir". > Check out her resume at http://www.cherrypy.org/wiki/StaticContent I think i am in love :) -- http://mail.python.org/mailman/listinfo/python-list

Re: Http server

2006-12-19 Thread fumanchu
Gert Cuykens wrote: > so far this works > > > import cherrypy > import os.path > > class Http: > > def index(self): > f = open(os.path.join(os.path.dirname(__file__), '../htm/index.htm')) > xml = f.read() > f.close() > return xml > index.exposed = True > > c

Http server

2006-12-19 Thread Gert Cuykens
so far this works import cherrypy import os.path class Http: def index(self): f = open(os.path.join(os.path.dirname(__file__), '../htm/index.htm')) xml = f.read() f.close() return xml index.exposed = True cherrypy.tree.mount(Http()) if __name__ == '__ma

Post data to http server using libcurl

2006-11-09 Thread Raj
Hi, I am newbie to programming with libcurl. the problem is i want to send my gmail username and password outside the browser and get access to my mail. this i am doing with LibCurl. Though i dont get any errors, i am nt able to get the o/p Can anyone kindly help. i will attach the program here #in

Re: HTTP Server Root Folder

2006-09-05 Thread Steve Holden
placid wrote: > Hi All, > > I have this BaseHTTPServer.HTTPServer that is located at C:\ (im on > Windows XP), when i run the program (httpserver.pyw) from the Run > Dialog as "C:\httpserver.pyw" the root folder ("\") for http server is > C:\, but when i a

HTTP Server Root Folder

2006-09-05 Thread placid
Hi All, I have this BaseHTTPServer.HTTPServer that is located at C:\ (im on Windows XP), when i run the program (httpserver.pyw) from the Run Dialog as "C:\httpserver.pyw" the root folder ("\") for http server is C:\, but when i add an entry to Registry Run so that it runs at

problem with http server

2006-06-27 Thread placid
Hi all, Im having trouble with the following code for handling GET requests from a client to my HTTP server. What i want to do is restrict access only to a folder and contents(files) within this folder. But when trying to open files (eg text files) i get file not found error from send_head

HTTP server

2006-06-27 Thread placid
Hi all, Im having trouble with the following code for handling GET requests from a client to my HTTP server. What i want to do is restrict access only to a folder and contents(files) within this folder. But when trying to open files (eg text files) i get file not found error from send_head

Re: HTTP server

2006-06-26 Thread placid
Simon Forman wrote: > ... > > > > Awesome! Glad to hear it. > > ... > > > > Thanks for the help. I got it to work now. > > > > You're welcome. I'm glad I could help you. :-D > Im having trouble with the following code for handling GE

Re: HTTP server

2006-06-25 Thread Simon Forman
placid wrote: > Simon Forman wrote: ... > > The file was named test.cgi. I changed it too test.py and it worked > Awesome! Glad to hear it. ... > > Thanks for the help. I got it to work now. > You're welcome. I'm glad I could help you. :-D Peace, ~Simon -- http://mail.python.org/mailman

Re: HTTP server

2006-06-25 Thread placid
#!c:/Python/python.exe -u > > > > text = """Content-type: text/html > > > > CGI 101 > > A Second CGI script > > > > Hello, CGI World! > > """ > > print text > > > > > > > > >

Re: HTTP server

2006-06-25 Thread Simon Forman
his is what i was after, thanks for the tip. > You're welcome, my pleasure. : ) ... > > Im having trouble running the following cgi script on windows > > > > #!c:/Python/python.exe -u > > text = """Content-type: text/html > > CGI 101 > A Second

Re: HTTP server

2006-06-25 Thread placid
Simon Forman wrote: > > > Ok, seriously, I don't know how pydoc does it, but when I need a > quick-and-dirty http server [written in python] I use something like > this: > > from BaseHTTPServer import HTTPServer > from SimpleHTTPServer import SimpleHTTPRequestHan

Re: HTTP server

2006-06-24 Thread Simon Forman
placid wrote: > Hi all, > > Ive been reading about creating a HTTP server like the one pydoc > creates (and studying pydoc source code). What i want to know, is it > possible to create server that creates a webpage with hyperlinks that > communicate back to the HTTP serve

HTTP server

2006-06-24 Thread placid
Hi all, Ive been reading about creating a HTTP server like the one pydoc creates (and studying pydoc source code). What i want to know, is it possible to create server that creates a webpage with hyperlinks that communicate back to the HTTP server, where each link accessed tells the server to

Re: an intriguing wifi http server mystery...please help

2005-12-02 Thread Paul Boddie
to my point about the "fairly simple HTTP server" that you are using, if you choose to run whichever server such that you can see it writing its log - for BaseHTTPServer this is easy since it just writes its log to the terminal/console - then you might be able to see where the delay occurs

Re: an intriguing wifi http server mystery...please help

2005-12-02 Thread jojoba
Hello again everyone, First, I want to thank all those who have contributed to the unravelling of this server-slow-down mystery. But unfortunately, either: 1) i have not made my point clear about what my question is 2) i do not understand the responses given So, let me briefly reiterate what the

Re: an intriguing wifi http server mystery...please help

2005-12-02 Thread Paul Boddie
[EMAIL PROTECTED] wrote: > Could the above server-speed assymetry that i spoke of above be caused > by this reverse dns lookup? I think so. You stated that you use "a fairly simple HTTP server", although that's not exactly specific enough to diagnose the problem, but if t

Re: an intriguing wifi http server mystery...please help

2005-12-01 Thread jojoba
> Just a guess: could it be that your server is doing reverse-dns lookups? > (i.e. it does socket.gethostbyaddr to get names by ip addresses, > perhaps for logging or whatnot) > This call is expensive. Sometimes this call takes ages to complete, > if you have a broken DNS config. Interesting...

Re: an intriguing wifi http server mystery...please help

2005-12-01 Thread Irmen de Jong
[EMAIL PROTECTED] wrote: > Hi again Istvan, > > Good suggestion. > I have tried another server and it works flawlessly, regardless of the > computers being wireless or wired. Excellent. > However, i am still intrigued as to why the server is fast when both > computers are wireless and the desktop

Re: an intriguing wifi http server mystery...please help

2005-11-30 Thread jojoba
Hi again Istvan, Good suggestion. I have tried another server and it works flawlessly, regardless of the computers being wireless or wired. Excellent. However, i am still intrigued as to why the server is fast when both computers are wireless and the desktop is the server (while the laptop is the

Re: an intriguing wifi http server mystery...please help

2005-11-30 Thread Istvan Albert
> But if it's a problem with the software, why does the server work > great when wired (i.e. not wireless)...that's the weird part. Don't be so quick to eliminate software error ... when it comes to bugs there are few rules. You are using a recipe that is *known* to produce weird behavior. Make

  1   2   >