Software zum Installieren eines Smart-Mirror Frameworks , zum Nutzen von hochschulrelevanten Informationen, auf einem Raspberry-Pi.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

digest-auth.js 325B

12345678910111213141516
  1. var needle = require('./..');
  2. var opts = {
  3. username: 'user3',
  4. password: 'user3',
  5. auth: 'digest'
  6. }
  7. needle.get('http://test.webdav.org/auth-digest/', opts, function(err, resp, body) {
  8. console.log(resp.headers);
  9. if (resp.statusCode == 401)
  10. console.log('\nIt failed.')
  11. else
  12. console.log('\nIt worked!')
  13. });