Re: getting POST vars from BaseHTTPRequestHandler

2006-06-27 Thread and-google
Christopher J. Bottaro wrote: > When I make a post, it just hangs (in self.rfile.read()). I don't know about BaseHTTPRequestHandler in particular, but in general you don't want to call an unlimited read() on an HTTP request - it will try to read the entire incoming stream, up until the stream is

getting POST vars from BaseHTTPRequestHandler

2006-06-26 Thread Christopher J. Bottaro
Hi, I can't for the life of me figure out how to get the post vars when using basehttpserver. Here's my code: class MyHandler(BaseHTTPRequestHandler): def do_POST(self): print self.path, self.command if self.rfile: print self.rfile.read() else: print 'no