simplehttpserver

Embedded Web Server in Python ?

Can you recommend a minimalistic python webserver that I can embedded in my Desktop Application. ...

How can I create an local webserver for my python scripts?

I'm looking to use a local webserver to run a series of python scripts for the user. For various unavoidable reasons, the python script must run locally, not on a server. As a result, I'll be using HTML+browser as the UI, which I'm comfortable with, for the front end. I've been looking, therefore, for a lightweight web server that can e...

what is the difference between BaseHTTPServer and SimpleHTTPServer? when and where to use it?

What is the difference between BaseHTTPServer and SimpleHTTPServer? When and where should i use these? ...

Using SimpleHTTPServer for unit testing

Hello, I'm writing a Python module that wraps out a certain web service API. It's all REST, so relatively straightforward to implement. However, I found a problem when it comes to unit testing: as I don't run the services I made this module for, I don't want to hammer them, but at the same time, I need to retrieve data to run my tests...

Real time embeddable http server library required

Having looked at several available http server libraries I have not yet found what I am looking for and am sure I can't be the first to have this set of requirements. I need a library which presents an API which is 'pipelined'. Pipelining is used to describe an HTTP feature where multiple HTTP requests can be sent across a TCP link at a...

Is it possible to write dynamic web pages in Python with the Really Simple HTTP Server?

I know that with the SimpleHTTPServer I can make my directories accessible by web-browsers via Internet. So, I run just one line of the code and, as a result, another person working on another computer can use his/her browser to see content of my directories. But I wander if I can make more complicated things. For example, somebody uses...

BasicHTTPServer, SimpleHTTPServer and concurrency

I'm writing a small web server for testing purposes using python, BasicHTTPServer and SimpleHTTPServer. It looks like it's processing one request at a time. Is there any way to make it a little faster without messing around too deeply? Basicly my code looks as the following and I'd like to keep it this simple ;) os.chdir(webroot) httpd ...

How do I forward a request to a different url in python

I have been looking for the syntax to redirect a special url to a remote server to do some XSS testing. Any ideas? import SimpleHTTPServer import SocketServer class myHandler(SimpleHTTPServer.SimpleHTTPRequestHandler): def do_GET(self): print self.path if self.path == '/analog': -------------------->return "http://...

Download whole directories in Python SimpleHTTPServer

I really like how I can easily share files on a network using the SimpleHTTPServer, but I wish there was an option like "download entire directory". Is there an easy (one liner) way to implement this? Thanks ...

Why does a background task block the response in SimpleHTTPServer?

I'm writing a simple browser-based front end that should be able to launch a background task and then get progress from it. I want the browser to receive a response saying whether the task launched successfully, and then poll to determine when it is done. However, the presence of a background task seems to be stopping the XMLHttpReques...