def do_POST(self):
self.path = urllib.url2pathname(self.path)
x = self.rfile.read(int(self.headers.getheader('content-length')))
# The following throws away two extra bytes sent by IE, if we would
# not do this, POSTs from IE would not work: [see bug #427345]
try:
while select.select([self.rfile], [], [], 0)[0]:
if not self.rfile.read(1):
break
except:
Utils.Error("Select hack raised exception.",prefix="Warning")
self.query = cgi.parse_qs(x)
self.do_WORK()
评论列表
文章目录