Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
22 lines (14 sloc) 707 Bytes
Intent is to add Auth Digest support to node.js. Test against personal lighttpd server
-node 0.1.90 or higher
Usage Notes:
-Similar to http.Client. only export is
createClient(port, host, username, password, expectedRealm)
The parameters explain themselves, except that expectedRealm enforces auth realm.
-All HACKs and FIXMEs documented in the source.
-In normal working circumstances, the first request will either return 401 (authorization error) or 408 (request timed out). 408 is actually the success case, but since this class does not buffer the request I just force the user to retry.
Better ideas welcome.
node-http-digest is in the public domain.