Hi there,
Greetings!
We are experienced with Curl function and we reviewed the 2 conditions you mentioned to pass and the cookies need to be fetched, we are confident about the work .
Waiting for your response to discuss in detail to move ahead.
Regards,
Priya