Juergen Brendel wrote: > Hello Ian, > > Thank you for the really quick response. Now I have two more > questions... > > >> It's just a coincidence it works on Linux; iteration isn't part of the >> required API of wsgi.input. > > Oh, I must have mis-read this one here then: > > http://www.python.org/dev/peps/pep-0333/#input-and-error-streams > > I thought that this indicated that iteration MUST be supported by the > server? What did I miss?
Mmm... I guess you are right. Hm... well, then I guess there may be a problem in the server. Which server are you using, paste.httpserver? >> Also, you should be really careful not to >> read past the end (environ['CONTENT_LENGTH']), as on some servers that >> will block. > > Ok. How do I do this in cases where the data is streamed, and no content > length has been sent by the client? Is 'chunked' the only way to go? I don't know if there's any support under WSGI for streamed content like that. -- Ian Bicking : [EMAIL PROTECTED] : http://blog.ianbicking.org : Write code, do good : http://topp.openplans.org/careers _______________________________________________ Paste-users mailing list [email protected] http://webwareforpython.org/cgi-bin/mailman/listinfo/paste-users
