Skip to content

Instantly share code, notes, and snippets.

@JoeStanton
JoeStanton / ntlm.js
Last active September 17, 2024 04:01
NTLM Authentication with node-fetch
/* eslint-disable no-console */
const https = require('https');
const fetch = require('node-fetch');
const ntlm = require('httpntlm').ntlm;
const keepAlive = new https.Agent({ keepAlive: true });
const handleErrors = (response) => {
if (!response.ok) {