CURL & web.py: transfer closed with outstanding read data remaining
- by Richard J
Hi Folks,
I have written a web.py POST handler, thus:
import web
urls = ('/my', 'Test')
class Test:
def POST(self):
return "Here is your content"
app = web.application(urls, globals())
if __name__ == "__main__":
app.run()
When I interact with it using Curl from the command line I get different responses depending on whether I…