GithubHelp home page GithubHelp logo

Comments (6)

JCMais avatar JCMais commented on July 22, 2024

Hi!

Thanks for reporting that, should be fixed in 0.8.0!

from node-libcurl.

johnnypez avatar johnnypez commented on July 22, 2024

Any idea when 0.8.0 will land? Is there any way I could work around it?

from node-libcurl.

johnnypez avatar johnnypez commented on July 22, 2024

Sorry, I see that you released 0.8.0 last night. Thank you ;)

from node-libcurl.

johnnypez avatar johnnypez commented on July 22, 2024

It took me a minute to realise that this only works with an Easy handle. Is there any particular reason for that?

e.g. this throws an error

var ch = new Curl()
ch.setOpt(Curl.option.SSH_AUTH_TYPES, Curl.ssh_auth.PASSWORD)

but this works.

var ch = new Easy()
ch.setOpt(Curl.option.SSH_AUTH_TYPES, Curl.ssh_auth.PASSWORD)

from node-libcurl.

johnnypez avatar johnnypez commented on July 22, 2024

Did you ever have one of those mornings where you waste two hours because you haven't woken up yet?
Libcurl doesn't have sftp support enabled on my local machine but it's available on my dev machine in the cloud. So I was seeing different results.

Also, after reading your code, I realised that the above was not throwing an error when trying to set that option on the Easy() handle directly because only the Curl() handle checks the return code and throws an error if CURLE_OK is not returned. In both instances CURLE_UNKNOWN_OPTION was being returned.

Anyway, thanks again for implementing this so quick. Time for ☕☕☕

from node-libcurl.

JCMais avatar JCMais commented on July 22, 2024

Did you ever have one of those mornings where you waste two hours because you haven't woken up yet?

Almost everyday. 😄

from node-libcurl.

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.