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

  • SEARCH
  • Home
  • 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 6889067
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T06:06:33+00:00 2026-05-27T06:06:33+00:00

I’m trying to send an http get request via the httplib, but I’m facing

  • 0

I’m trying to send an http get request via the httplib, but I’m facing issues.

        conn = httplib.HTTPConnection("10.30.111.13/View")
        conn.request("GET", "/Default.aspx")
        res = conn.getresponse()

        if res.status == 200:
            print(res.status)

        else:
            print("Something went terribly wrong")

I get the following error:

TypeError (cannot concatenate 'str' and 'int' objects).

If put the next line of codes, it works no problem:

 conn = httplib.HTTPConnection("www.google.com")
 conn.request("GET", "/")

EDIT, here is a more detailed log I managed to pull out of my third party software (it restricts me in turn of python usability):

  File "<string>", line 3248, in initialization
  File "C:\python22\lib\httplib.py", line 701, in request
    self._send_request(method, url, body, headers)
  File "C:\python22\lib\httplib.py", line 723, in _send_request
    self.endheaders()
  File "C:\python22\lib\httplib.py", line 695, in endheaders
    self._send_output()
  File "C:\python22\lib\httplib.py", line 581, in _send_output
    self.send(msg)
  File "C:\python22\lib\httplib.py", line 548, in send
    self.connect()
  File "C:\python22\lib\httplib.py", line 516, in connect
    socket.SOCK_STREAM):
gaierror: (7, 'getaddrinfo failed')
  • 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-05-27T06:06:33+00:00Added an answer on May 27, 2026 at 6:06 am

    I’m not someplace where I can test this now, but here’s what I think:

    You’re passing only an IP address to a host field that’s expecting a DNS address, not an IP address. That’s why your second error listing says ‘getaddrinfo’ failed.

    That said, I’m not sure how to use an IP address with httplib. Maybe try “http://10.30.111.13” instead. A good way to test it would be to replace your IP address above with Google’s and see if you still get the error.

    Maybe this will help — sorry I can’t say more!

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

Sidebar

Related Questions

I am trying to understand how to use SyndicationItem to display feed which is
Basically, what I'm trying to create is a page of div tags, each has
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I want to count how many characters a certain string has in PHP, but
Seemingly simple, but I cannot find anything relevant on the web. What is the
I have a French site that I want to parse, but am running into
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I need to clean up various Word 'smart' characters in user input, including but
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
I have an MVC Razor view @{ ViewBag.Title = Index; var c = (char)146;

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.