Giter Club home page Giter Club logo

Comments (2)

pierucci avatar pierucci commented on July 30, 2024

So far the way to deal with proxy settings on MS Windows is kind of a hack:

  • using httr::GET() alone fails with a timeout error.
  • proxy settings must be passed to httr::GET().
  • proxy settings are found with curl::ie_get_proxy_for_url(), I think this only return something in MS Windows.
  • and then httr::GET() is called with those settings.

On the other hand install.packages() (actually running download.file() under the hood) uses a method argument to handle the connection settings. On MS Windows this method is automatically set to wininet, and that seems to take care of everything.

So ideally I'd like to use something similar with httr::GET() without ressorting to curl::ie_get_proxy_for_url(). But it looks like this method is specific of download.file() and I don't really see how to use it with httr::GET()...

from rgho.

pierucci avatar pierucci commented on July 30, 2024

Rather than that messy proxy script, I'd rather refactor everything with global options. So 1 option, rgho.http_prox, that is either NULL (no proxy) or parsed in a proxy config. Stop the madness.

from rgho.

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.