Coder Social home page Coder Social logo

Comments (4)

linslin avatar linslin commented on July 20, 2024

Thanks for your request. We gonna check this in the next weeks. We are currently stucking in other projects.

from yii2-curl.

linslin avatar linslin commented on July 20, 2024

@ODY90 we checked this request carefully but we did not found any lacks inside the currently implemented logic. The options inside your instance will not get lost until you call reset(), unsetOptions() or unsetOption(). Your options:

$curl
    ->setOption(CURLOPT_COOKIESESSION, 1)
    ->setOption(CURLOPT_COOKIEJAR, '/tmp/cookies.txt')
    ->setPostParams($loginParams)
    ->post(LOGIN_URL);

//will keep the options you set before on that instance.
$curl->setPostParams($anotherParams)->post(ANOTHER_URL);

... will be set on each new request, even when curl_init() is initialized again on each request. Maybe we are wrong but by reffering this https://stackoverflow.com/questions/30760213/save-cookies-between-two-curl-requests you should be able to handle your cookie session by using CURLOPT_* yourself. If not, please create a full qualyfied example of what is not working.

Thank you
Lin

from yii2-curl.

linslin avatar linslin commented on July 20, 2024

@ODY90 any feedback?

from yii2-curl.

linslin avatar linslin commented on July 20, 2024

@ODY90 we going to close this issue. Once you provide some feedback we will reopen it.

from yii2-curl.

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.