[Twisted-Python] Basic HTTP Authentication in Twisted.web

Jeff Epler jepler at unpythonic.net
Tue Feb 18 17:00:18 EST 2003


On Tue, Feb 18, 2003 at 09:11:03PM +0100, Thomas Weholt wrote:
>             request.setHeader('Content-Length', str(len('401: Authorization needed.')))
...
>             return '<h1>401 Authentication required</h1>%s' % msg

Your Content-Length and actual body are different.  This may be the
point at which all hell breaks loose.

Jeff




More information about the Twisted-Python mailing list