I have 2 urls which are linked by PHPSESSID,
$main = test.com/report/download.php?id=123 //This Url get PHPSESSID
$content = test.com/report/pdf //This Url request PHPSESSID
ASK
How do I get the content that is in the second url with curl?
TODO
I plan to create a button where when the button is pressed it will immediately download the contents in the form of a pdf on the second url without opening the first url in the browser tab
I have tried
I have tried to save the PHPSESSID in the database, and when the button is pressed the second url will request the data, but that method is not effective because PHPSESSID has access time, in my case the trigger to save PHPSESSID is only done once
Aucun commentaire:
Enregistrer un commentaire