Comments (4)
Thanks for your request. We gonna check this in the next weeks. We are currently stucking in other projects.
from yii2-curl.
@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.
@ODY90 any feedback?
from yii2-curl.
@ODY90 we going to close this issue. Once you provide some feedback we will reopen it.
from yii2-curl.
Related Issues (20)
- responseHeaders with ':' truncated HOT 2
- fields[email] HOT 5
- Simultaneus requests HOT 2
- Not installed on PHP 5.6 HOT 1
- How to post with Authorization as header? HOT 1
- Post json string HOT 5
- Issue Server Response not get HOT 2
- Not Getting latest version HOT 5
- POST Request Body Array HOT 2
- Curl not giving me any response HOT 2
- I found a bug in your code - Wrong function patch() HOT 2
- HTTP Method "Options" not supported HOT 3
- Excluded `tests` directory from a composer package HOT 4
- https HOT 1
- set param - "--anyauth" HOT 2
- Serialization of 'CURLFile' is not allowed HOT 5
- Why is "yidas/yii2-bower-asset" required HOT 9
- Proxy support HOT 1
- setOption require string, but curl_setopt_array expects array of constants or ints HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from yii2-curl.