Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
http.Client supporting Digest authentication
JavaScript
tree: 5aa150fe3f
Failed to load latest commit information.
README Explicit public domain license
digest.js Explicit public domain license
test.js initial commit

README

Intent is to add Auth Digest support to node.js. Test against personal lighttpd server

Dependencies:
-node 0.1.90 or higher
-hashlib

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.

CAVEATS:
-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.

LICENSING:
node-http-digest is in the public domain.
Something went wrong with that request. Please try again.