Merhaba,
Burp ile yakaladığım isteği burp ile tekrar gönderince yanıt gelirken aynı işlemi python requests kütüphanesi ile yaptığımda 403 hatası alıyorum. Nasıl düzeltebilirim bunu ?
burp ile yakaladığım istek:
python kodu:
import requests
url = "https://10minutemail.com:443/session/address"
cookies = {"_ga": "GA1.2.1089693451.1647022774", "_gid": "GA1.2.395419431.1647022774", "_pbjs_userid_consent_data": "3524755945110770", "cto_bundle": "BB1a4V9zMEFNOHdSNSUyRkVCJTJCNEVISnRNJTJCSEx4OTY5WkluNzg5TjROZVpQTVZVeUhnS1J3R21jJTJGNzJBMmdrNWtZY3dKQVI0MFVUbk5UT2wxVWlpJTJCM2Uxa1lNaFhYJTJCMDU5WmclMkJSMG1mQWE4YnU5bzAzeFp3TiUyRjhvUUx3SGVmaHZCdDduZ0xWWXRuJTJCQ0ZnQU9VcHdZOVFsVU1qQlElM0QlM0Q", "__cf_bm": "Sku3YxKLoxOQGE_9OnclLZ4GJZBOY1WsGzn8FY.Lizk-1647108240-0-ASgMvcux/ChrdwlGAAa6x4IoRIIp1vwlpKgx0UwHHIZ3KF5+0KmS52yu2dVxvfZDH056hJvIcjlHDEZ8Eq9WwGy3t40bULKS2vaHs9vmfUksyL67CM/uhdqekk9od7vePQ==", "__viCookieActive": "true", "JSESSIONID": "F69B110F3F382BEA784C4F72FAD1C89F"}
headers = {"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:98.0) Gecko/20100101 Firefox/98.0", "Accept": "*/*", "Accept-Language": "tr-TR,tr;q=0.8,en-US;q=0.5,en;q=0.3", "Accept-Encoding": "gzip, deflate", "X-Requested-With": "XMLHttpRequest", "Dnt": "1", "Referer": "https://10minutemail.com/", "Sec-Fetch-Dest": "empty", "Sec-Fetch-Mode": "cors", "Sec-Fetch-Site": "same-origin", "Te": "trailers"}
requests.get(url, headers=headers, cookies=cookies)