I\'ve been struggling with my company proxy to make an https request.
import requests
from requests.auth import HTTPProxyAuth
proxy_string = \'http://user:
I personally solved the above problem on my system by updating the environment variables http_proxy,https_proxy,socks_proxy,ftp_proxy.
First enter the command on your terminal : printenv
This should show you the environment variables on your system.
In my case intially: http_proxy=http://proxyserver:port/
I changed it to : http_proxy=http://username:password@proxy:port/
using the command export http_proxy="http://username:password@proxy:port/"
Similarly for https_proxy,socks_proxy,ftp_proxy