Giter Site home page Giter Site logo

Proxy support about prebuild-install HOT 4 CLOSED

prebuild avatar prebuild commented on June 10, 2024
Proxy support

from prebuild-install.

Comments (4)

rgbkrk avatar rgbkrk commented on June 10, 2024 1

One of our users (@eskemojoe007) is running into this with Hydrogen. I tried to have them run npm install zeromq directly and it ran into problems. Just to make sure it's not something specific we did in zeromq, we'll check out leveldown.

/cc @lgeiger

from prebuild-install.

ralphtheninja avatar ralphtheninja commented on June 10, 2024

Isn't it enough to give simple-get an option object with the proxy as the host and the url as path?

Afaik simple-get wraps the http module. Does it have support for proxies?

from prebuild-install.

mathiask88 avatar mathiask88 commented on June 10, 2024

You can use

var http = require("http");

var options = {
  host: "proxy",
  port: 8080,
  path: "http://www.google.com",
  headers: {
    Host: "www.google.com"
  }
};
http.get(options, ...

for HTTP requests. And AFAIK it is also possible to access HTTPS sites but then the connection to the proxy is still HTTP.

from prebuild-install.

mathiask88 avatar mathiask88 commented on June 10, 2024

#13

from prebuild-install.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.