Skip to content

Multiple host names on IP #12

Description

@maiiabocharova

Hello, can you please help me - I am trying to understand how to get responses from IP hosting several websites
I found than 34.240.28.46 hosts the site I am trying to get responses from. With normal requests I get:

SSLError: HTTPSConnectionPool(host='34.240.28.46', port=443): Max retries exceeded with url: /jobs/accountancy (Caused by SSLError(CertificateError("hostname '34.240.28.46' doesn't match either of 'totaljobs.com', 'careerstructure.com', 'caterer.com', 'catererglobal.com', 'cityjobs.com', 'cwjobs.co.uk', 'emedcareers.com', 'jobsite.co.uk', 'justengineers.net', 'milkround.com', 'retailchoice.com'")))

When using ForcedIPHTTPSAdapter:

url = 'https://totaljobs.com/jobs/accountancy'
session = requests.Session()
session.mount(url, ForcedIPHTTPSAdapter(dest_ip='34.240.28.46'))
r = session.get(url, verify=False, timeout=10)

I get timeout error.
Can somone please help me understand what I am doing wrong

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions