-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Labels
bugSomething isn't workingSomething isn't working
Description
TLS Requests version
last version
Issue description
I'm getting an access denied error when requesting a URL protected by Cloudflare. I have several different endpoints, and it only gives an error on one. It doesn't always give an error. Sometimes it does. What could be the cause and solution? I have to use a single proxy. Once I log in, it won't allow access except to the IP address used to access the account.
Steps to reproduce / Code Sample
url = f"https://ticketingweb.passo.com.tr/api/passoweb/refreshtoken/{refresh_token}"
headers = {
"host": "ticketingweb.passo.com.tr",
"connection": "keep-alive",
"sec-ch-ua-platform": "\"Windows\"",
"user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.0.0 Safari/537.36",
"accept": "application/json, text/plain, */*",
"sec-ch-ua": "\"Google Chrome\";v=\"141\", \"Not?A_Brand\";v=\"8\", \"Chromium\";v=\"141\"",
"content-length": "2",
"content-type": "application/json",
"sec-ch-ua-mobile": "?0",
"origin": "https://www.passo.com.tr",
"sec-fetch-site": "same-site",
"sec-fetch-mode": "cors",
"sec-fetch-dest": "empty",
"referer": "https://www.passo.com.tr/",
"accept-encoding": "gzip, deflate, br, zstd",
"accept-language": "tr-TR,tr;q=0.9,en-US;q=0.8,en;q=0.7"
}
request_params = {
"url": url,
"headers": headers,
}
request_params["proxy"] = "proxy"
tls_requests.post(**request_params)
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working