I am doing a simple get request with Python to url https://stat.gov.kz/important/classifier. When I do same request with Postman or on Golang - I have no problem. Works perfectly. Buu with Python I get following error:
requests.exceptions.ProxyError: HTTPSConnectionPool(host='stat.gov.kz', port=443):
Max retries ***exceeded with url: /important/classifier (Caused by ProxyError
('Your proxy appears to only use HTTP and not HTTPS, try changing your proxy URL
to be HTTP.
See: https://urllib3.readthedocs.io/en/1.26.x/advanced-usage.html#https-proxy-error-http-proxy',
SSLError(SSLError(1, '[SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:997)'))))
***
My code is simple:
import requests
url = "https://stat.gov.kz/important/classifier"
payload={}
headers = {
'Content-Type': 'application/json; charset=utf-8',
'Cookie': 'cookiesession1=678B774D30541450DAF79D7FA70C889F'
}
response = requests.request("GET", url, headers=headers, data=payload)
print(response.text)
I did it with verify=False - no effect. What do I do?