If i want to do multiple things (that require cookies) with curl, for example:
do I do this in one curl instance before curl close or do i close first session and then start second one for second task? (Sorry if it's dumb question but i can't quite get it. Generally all examples on the net i find about curl are doing only one thing... this doesn't help me with understanding it.)
Generally speaking:
curl_init
, or curl_multi_init
)curl_exec
calls if needed, or curl_multi_exec
)curl_close
or curl_multi_close
)So yes, all in one session.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With