Redirect after authorization using cURL.

I don’t often have to work with a curl, so I need your help. There is a domain, where authorization goes through the login.php script. Authorization is supported using sessions + SSL.
And on another domain, you need to do this authorization using a script, and after getting the data, save it in your database (the parser is already my concern). This is done to regularly update the price list from the main warehouses. There is nothing illegal in this.

Help, please. How to do authorization and maintain a session using cURL? After authorization and receiving sessions, you need to redirect to another script that displays the price.

Answer 1, authority 100%

I didn’t quite understand your question..

Tryndel is about the server, but you need a client.

Look in this side

Answer 2

If the session is transmitted via COOKIE – you need to add lines when initializing the session

// specify the file name for storing and reading cookies
curl_setopt(curl, CURLOPT_COOKIEJAR,”outfile.txt”);
curl_setopt( curl, CURLOPT_COOKIEFILE,”outfile.txt” );

There was a similar problem (about 5 years ago), I solved it this way – if it doesn’t help, write back – I’ll think about it further