Untitled
public
Dec 02, 2023
Never
42
1 <?php 2 $ch = curl_init(); 3 4 curl_setopt($ch, CURLOPT_URL, 'https://pro.api.serversmtp.com/api/v2/authorize'); 5 curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); 6 curl_setopt($ch, CURLOPT_POST, 1); 7 curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); 8 curl_setopt($ch, CURLOPT_POSTFIELDS, '{"email":"[email protected]","password":"zSpe8sTW","no_expire":false}'); 9 10 $headers = array(); 11 $headers[] = 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:120.0) Gecko/20100101 Firefox/120.0'; 12 $headers[] = 'Accept: application/json, text/plain, */*'; 13 $headers[] = 'Accept-Language: en-US,en;q=0.5'; 14 $headers[] = 'Accept-Encoding: gzip, deflate, br'; 15 $headers[] = 'Content-Type: application/json'; 16 $headers[] = 'Origin: https://dashboard.serversmtp.com'; 17 $headers[] = 'Dnt: 1'; 18 $headers[] = 'Sec-Gpc: 1'; 19 $headers[] = 'Connection: keep-alive'; 20 $headers[] = 'Referer: https://dashboard.serversmtp.com/'; 21 $headers[] = 'Sec-Fetch-Dest: empty'; 22 $headers[] = 'Sec-Fetch-Mode: cors'; 23 $headers[] = 'Sec-Fetch-Site: same-site'; 24 curl_setopt($ch, CURLOPT_HTTPHEADER, $headers); 25 26 $result = curl_exec($ch);