0

I'd like to write a nodejs script that checks every few minutes a 3rd-party website. The only problem is that I have to enter my username and password through a .htpasswd/.htacces prompt. How can I do this with nodejs?

NoaH
  • 27
  • 7
  • Have you tried [`http-auth`](https://www.npmjs.com/package/http-auth#custom-authentication) or possible duplicate of [how to do Auth in node.js client](https://stackoverflow.com/questions/15986204/how-to-do-auth-in-node-js-client) – Prix Nov 19 '18 at 17:21

1 Answers1

-2

It was easy! I just used http://username:password@www.websiteurl.com and it worked

NoaH
  • 27
  • 7