Some of the information here may be outdated, please check the book instead
[edit]

Here is how you jam various types of invalid requests. Requires v1.21 (only available at code.google.com//web2py). Will be officially released within the week.

in applications/myapp/controllers/default.py

class Jammer(): def read(self,n): return 'x'*n

def jammer(): return response.stream(Jammer(),40000)

© 2008-2010 by Massimo Di Pierro - All rights reserved - Powered by web2py - design derived from a theme by the earlybird
The content of this book is released under the Artistic License 2.0 - Modified content cannot be reproduced.