Sample Integrations
Ruby
Sample Integrations
Ruby
Ruby’s standard HTTP library doesn’t seem to support HTTPS proxy connections, so connect to the Massive Network’s HTTP port with Ruby:
#!/usr/bin/env node
const puppeteer = require('puppeteer');
(async () => {
const browser = await puppeteer.launch({
args: ['--proxy-server=https://network.joinmassive.com:65535']
});
const page = (await browser.pages())[0];
await page.authenticate({
username: '{PROXY_USERNAME},
password: '{API_KEY}'
});
await page.goto('https://cloudflare.com/cdn-cgi/trace'); // Insert your target URL here
console.log(await page.content());
browser.close();
})();