import requests
# FlashIP Proxy
proxies = {
"http": "http://customer_demo:password123@proxy.flaship.io:10000",
"https": "http://customer_demo:password123@proxy.flaship.io:10000",
}
response = requests.get("https://ipinfo.io/json", proxies=proxies, timeout=10)
print(response.json())
# Single request test through FlashIP
curl -x "http://customer_demo:password123@proxy.flaship.io:10000" \
"https://ipinfo.io/json"
import axios from 'axios';
import { HttpsProxyAgent } from 'https-proxy-agent';
// Connect via FlashIP
const proxyUrl = 'http://customer_demo:password123@proxy.flaship.io:10000';
const httpsAgent = new HttpsProxyAgent(proxyUrl);
const res = await axios.get('https://ipinfo.io/json', { httpsAgent });
console.log(res.data);
import puppeteer from 'puppeteer';
// Browser Automation with FlashIP
const browser = await puppeteer.launch({
args: ['--proxy-server=http://proxy.flaship.io:10000'],
});
const page = await browser.newPage();
await page.authenticate({
username: 'customer_demo',
password: 'password123',
});
await page.goto('https://ipinfo.io/json');
console.log(await page.content());
await browser.close();