Re: Retrieve input

2005-12-01 Thread Peter Hansen
amfr wrote: > Thanks, but when I try to read the stream using read(), the script just > keeps on going and does not stop. When i press ctrl + c, the script > shows thsi (top of error taken off): > File "modules/runpython.py", line 88, in runModule > sys.stdin = self.rfile.read() > File > "/

Re: Retrieve input

2005-12-01 Thread amfr
Thanks, but when I try to read the stream using read(), the script just keeps on going and does not stop. When i press ctrl + c, the script shows thsi (top of error taken off): File "modules/runpython.py", line 88, in runModule sys.stdin = self.rfile.read() File "/System/Library/Frameworks/

Re: Retrieve input

2005-12-01 Thread Fredrik Lundh
"amfr" wrote: > A little while ago, someone told me that for the BaseHTTPServer module, > the whole request would be stored in self.rfile. > I looked at the doumentation and is says rfile is: > "Contains an input stream, positioned at the start of the optional > input data." > How do i get the inp

Retrieve input

2005-12-01 Thread amfr
A little while ago, someone told me that for the BaseHTTPServer module, the whole request would be stored in self.rfile. I looked at the doumentation and is says rfile is: "Contains an input stream, positioned at the start of the optional input data." How do i get the input out of it? -- http://