UNPKG

curl-wrap-ciff

Version:

Nodejs library that wraps curl command line

14 lines (12 loc) 474 B
const {Curl} = require("../index"); test("Returns a successful GET reponse on TLS Fingerprinting protected URL", async () => { const curl = new Curl(); curl.impersonate('chrome'); curl.url('https://www.govinfosecurity.com/interviews/protecting-highly-sensitive-health-data-for-research-i-5432'); curl.get(); curl.followRedirect(true); curl.timeout(30); const res = await curl; console.log(res.body); console.log(res.statusCode); });