Node Axios with a Proxy | ATLASSC.NET
Skip to main content
/// .DATA.FRAGMENT_20230630

Node Axios with a Proxy

1 minAuthor: Z.SHINCHVEN

Want to send http request via a proxy?

Axios got you covered.

import axios from 'axios';

const proxy = {
  protocol: 'http',
  host: '127.0.0.1',
  port: 7890,
  auth: {
    username: 'username',
    password: 'password',
  },
}

axios.get('http://your-api.com/',
  {
    proxy,
  }
)
  .then(res => {
    console.log(res.data)
  }).catch(err => console.error(err))
RackNerd Billboard Banner
Share node:
/// .RELATED.DATA_STREAMSShared tags

Related posts

Scanning_database_for_correlations…

/// .UPLINK.SUBSCRIBE

Keep your deck synced with every new transmission from ATLASSC.NET. Subscribe over RSS or Atom, or wire the whole archive straight into your AI assistant with the MCP server.