[Twisted-web] [PATCH] basic authentication and delimiter support for web.client

Bryan Larsen bryan.larsen at lumenera.com
Tue May 11 14:11:17 MDT 2004

This patch adds two things to web.client:

1) support for basic authentication.  (but not digest authentication).

2) allow the delimiter to be changed from '\r\n' to '\n'.  Because of
bugs in browsers, all servers send '\r\n' instead of the technically
legal '\n'.  But that's a pain for nph-sh scripts, so here's a quick
hack to change the delimiter.  To be legal, HttpClient should handle
both '\n' and '\r\n' simultaneously, but LineReceiver does not provide
this facility, so I'm using this hack instead.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: client.patch
Type: text/x-patch
Size: 1848 bytes
Desc: not available
Url : http://pyramid.twistedmatrix.com/pipermail/twisted-web/attachments/20040511/55b88658/client.bin

More information about the Twisted-web mailing list