⬅︎ Back to Best practice with retries with requests
Thank you, this option also works:resp = requests_retry_session().post( 'http://httpbin.org/post', proxies= {"http": "http://381.177.84.291:9040"})
I use this: # sample proxy, does not work, set your own proxy proxies = {"https": "https://381.177.84.291:9040"} # create session session = self.requests_retry_session() # get request response = session.get(url, proxies=proxies)
Comment
Thank you, this option also works:
resp = requests_retry_session().post(
'http://httpbin.org/post',
proxies= {"http": "http://381.177.84.291:9040"}
)
Parent comment
I use this: # sample proxy, does not work, set your own proxy proxies = {"https": "https://381.177.84.291:9040"} # create session session = self.requests_retry_session() # get request response = session.get(url, proxies=proxies)