<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://bdris.gov.bd/br/cancellation');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$headers = [
    'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:152.0) Gecko/20100101 Firefox/152.0',
    'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
    'Accept-Language: en-US,en;q=0.9',
    'Connection: keep-alive',
    'Cookie: SESSION=NmI4ZDkwNzQtNDczZi00NDdmLWIwZWItYTk5ZDYxMTYyNTM5; TS0108b707=01ab52a7c0e0811a66fdaf6085de69630603685163ee9f0ab6cd2c0cf81a90e725d92fcffa54935d4a4f84ea6098035ddbd00196d4b37fb20c7bbe5c7dcdcf13a9f110473e076727618001035bad7edfe722b2a608d4c07e12d5709c59b04e8e36ee6bc749ee739159791fe525050640822302257e; TS734dcca1027=08f04b28f2ab20007f02f5c9c60d3ebb3f3a415e886e865735e96301d9e6ab6cc7c27027089feac108f37f64c21130000b36d91b8106dcaca6d720e1184d872c9c7335dba2e6c49f909bfc6e59bdf0e773c8bd927f5cb143b7a047d44880db53; TS00000000076=08f04b28f2ab2800937909d64d7d4e0de3c3910a040dedbdc4d1d47955dfc0c2533697a40e58834a34fd39be844849860858fc11f509d000fa127b77285690ca0d56bfa87696b570545a01911f4b668102c3a7cf48fc7c72c3ee63adcd84f1708554a223c3d01011cba730b35bd4a3c188701a96548bed45ee13227fb276e26e116d3b9fde791208a7846fa96a267cadc6c77beb114e47bbcc00156a3d879ffe7dd04a686d3eed0cf390200a16711393b76cb4e0b63508a2da6adbfbd6c0d6de118a526ab79cf3a9708bbbeb4f65208579387ca6fbfd3a3d837c2fb7243abed264232f2ceb05b975e9ed331e5edb4f188fabd3e5c2a03746f983362df4eaae16d3ac4e8df23cea70; TSPD_101_DID=08f04b28f2ab2800937909d64d7d4e0de3c3910a040dedbdc4d1d47955dfc0c2533697a40e58834a34fd39be844849860858fc11f5063800973555672b5d624abd48cca68bd8ad581e74ff24a1fbbe47c95c55381700e140b3846977d60169e04a6c0c033354315bce7b9c5aa1c56a41; bdris_persist=!IgvYyzvOMEQceS9NK1GGjxXIK2kQdatwrRfO0Qpr0mIuElRbd7rzz9hOS5vlTyowZCh+anLQz4DLDUY=; srv_id=91d57a51683b6666692c5ab340cf1d15; TS01290640=019f799b8b30cd452ad8fa407d6f078dbd2dfbdd448acf6acf7c33a59e9cd48071d45aecb888e04af7ebc4cfdf7d987a3949b573e0',
    'Upgrade-Insecure-Requests: 1',
    'Sec-Fetch-Dest: document',
    'Sec-Fetch-Mode: navigate',
    'Sec-Fetch-Site: same-origin',
    'Sec-Fetch-User: ?1'
];
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
$html = curl_exec($ch);
file_put_contents('bdris_public_cancel_auth.html', $html);
echo "Fetched ".strlen($html)." bytes";
