Basic HTTP authentication in Node.js using the request module

Here’s an easy way to use basic authentication while using the request library for Node.js. Unfortunately request doesn’t come with an easy convenience parameter you can use, so you need to provide it by yourself. The common way is to add it as an extra HTTP header. Let’s say you need to login to example.com … Continue reading Basic HTTP authentication in Node.js using the request module