|
by: Joshua W. Biagio |
last post by:
Hello all,
I am having difficulty getting the HTTP/1.1 support (i.e. pipelining and persistent connections) for the BaseHTTPServer library to work. When I change the line for the protocol in BaseHTTPServer from "HTTP/1.0" to "HTTP/1.1", the SimpleHTTPServer program can still serve directory listings and even graphics files, but it hangs when I try to browse to an HTML file. I have a directory of web pages that I use to test servers (such as...
|
by: Yin |
last post by:
Hello.
I am using the basehttpserver to implement the HTTP protocol to serve
a fairly large lexicon that I have loaded as a dictionary in python.
Rather than writing a whole server, I would like to reuse the
BaseHTTPserver classes. I am interested in finding a way to serve the
dict without loading the whole dict into memory everytime an HTTP
request is made. The dict lives in local memory when it is loaded and
takes a long time to load.
|
by: Tortelini |
last post by:
I am making custom web server using HTTPServer and want to be able to
access it simultaneously from different computers. To achieve
multithreading, I have been experimenting with ThreadingMixIn from
SocketServer, but it doesn't seem to work, when I freeze code in one
instance it seems to be frozen in second one too (I experimented with
time.sleep and while 1 loop). I am using python 2.4 on Windows XP. Does
anyone have any suggestions? Do I...
|
by: Brian Roberts |
last post by:
I have a command line Python program that sometimes takes a bit
(several minutes) to run. I want to provide an optional method for an
impatient user (me!) to check the status of the program. The type and
amount of status information doesn't fit nicely into a --verbose or
logger -- either too little or too much information at different
points.
I think an optional web page would be convenient interface. The
Python program would listen...
|
by: amfr |
last post by:
>From the BaseHTTPServer module, how do i gget the POST or GET data sent
by the client? Is it stired the the file they requested? e.g.
objectname.path
|
|
by: Jeff Gercken |
last post by:
I want my http server to return a default form, regardless of the GET
request, but I'm a bit of a noob and have no idea how. I'm trying to
write a platform-independent captured portal for my wireless AP. This
is what I have:
#!/usr/bin/env python
import CGIHTTPServer
import BaseHTTPServer
class ServerHandler(CGIHTTPServer.CGIHTTPRequestHandler):
cgi_directories=
|
by: Ron Garret |
last post by:
I'm write a web server using BaseHTTPServer. It can't be a CGI because
it has to do some weird server-push stuff as database updates come in.
But I still need to process form inputs as if it were a CGI. But the
cgi module only works in a CGI environment. Is there something with the
equivalent functionality of cgi.FieldStorage for parsing form input in a
non-CGI environment such as a BaseHTTPServer? I looked at the cgi
module code but...
|
by: Ron Garret |
last post by:
I'm trying to figure out how to use BaseHTTPServer. Here's my little
test app:
=================================
#!/usr/bin/python
from BaseHTTPServer import *
import cgi
|
by: Ron Garret |
last post by:
I have a fairly large web app written in Python as a CGI fairly
elaborate CGI. All of the requests go through a single CGI script which
does authentication and session management and then dispatches to one of
a number of handlers that generate the various pages.
There is one page that is a performance bottleneck (because it is
accessed automatically once a second by an XMLHTTPRequest, but that's
another story). I have fixed this by...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
|