Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9150843
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T11:39:56+00:00 2026-06-17T11:39:56+00:00

I know how to use requests very well, yet for some reason I am

  • 0

I know how to use requests very well, yet for some reason I am not succeeding in getting the proxies working. I am making the following request:

r = requests.get('http://whatismyip.com', proxies={'http': 'http://148.236.5.92:8080'})

I get the following:

requests.exceptions.ConnectionError: [Errno 10060] A connection attempt failed b
ecause the connected party did not properly respond after a period of time, or e
stablished connection failed because connected host has failed to respond

Yet, I know the proxy works, because using node:

request.get({uri: 'http://www.whatismyip.com', proxy: 'http://148.236.5.92:8080'},
    function (err, response, body) {var $ = cheerio.load(body); console.log($('#greenip').text());});

I get the following (correct) response:

148.236.5.92

Furthermore, when I try the requests request at all differently (say, without writing http:// in front of the proxy), it just allows the request to go through normally without going through a proxy or returning an error.

What am I doing wrong in Python?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T11:39:57+00:00Added an answer on June 17, 2026 at 11:39 am

    As sigmavirus24 says, this is a known issue, which has been fixed, but hasn’t yet been packaged up into a new version and pushed to PyPI.

    So, if you need this in a hurry, you can upgrade from the git repo’s master.

    If you’re using pip, this is simple. Instead of this:

    pip install -U requests
    

    Do this:

    pip install -U git+https://github.com/kennethreitz/requests
    

    If you’re not using pip, you’ll probably have to explicitly git clone the repo, then easy_install . or python setup.py or whatever from your local copy.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like to try Silex but i've some questions. I know to use
Well I don't know if the title for this question is appropriate or not,
I'm not sure if the topic describes my problem very well but I am
I am running nginx+PHP+MySQL, and tomcat+postresql on windows (i know its not a very
I know I can use Request.Browser.IsMobileDevice . But does anyone know how it works,
Somebody know how use OpenX (php app) with Django? I need to use OpenX
I know the use of WCF in SA is deprecated because it will move
I know you use the C based networking API to do FTP communication but
I know and use eric meyer CSS reset, but is there any more things
I know and use the standard c# regex library, and I love it. It

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.