Source Check Username Tốc Chiến Cho Ai Cần
<?php
$url = "https://pay.mto.zing.vn/lp/login/loginByRole";
$curl = curl_init($url);
curl_setopt($curl, CURLOPT_URL, $url);
curl_setopt($curl, CURLOPT_POST, true);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
$headers = array(
"Connection: keep-alive",
"User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36",
"Content-Type: application/x-www-form-urlencoded; charset=UTF-8",
"Accept: */*",
"Origin: https://pay.zing.vn",
"Sec-Fetch-Site: same-site",
"Sec-Fetch-Mode: cors",
"Sec-Fetch-Dest: empty",
"Referer: https://pay.zing.vn/",
"Accept-Language: vi-VN,vi;q=0.9",
);
curl_setopt($curl, CURLOPT_HTTPHEADER, $headers);
$data = "u=&p=&e=&roleID=".$_GET['username']."&loginType=9&shopfrontID=tocchien&lang=VI";
curl_setopt($curl, CURLOPT_POSTFIELDS, $data);
//for debug only!
curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false);
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
$resp = curl_exec($curl);
curl_close($curl);
echo($resp);
?>