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 7071245
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T05:39:53+00:00 2026-05-28T05:39:53+00:00

How would you go about getting a completely unparsed response to a HTTPS request?

  • 0

How would you go about getting a completely unparsed response to a HTTPS request?

Are there any HTTP libraries that will allow you to get at the raw response, or is constructing a request manually using sockets the only way?

I’m specifically trying to see what newline characters the server is sending.

  • 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-28T05:39:54+00:00Added an answer on May 28, 2026 at 5:39 am

    Example from the docs:

    import socket, ssl, pprint
    
    s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
    
    # require a certificate from the server
    ssl_sock = ssl.wrap_socket(s,
                               # http://curl.haxx.se/ca/cacert.pem
                               ca_certs="cacert.pem",
                               cert_reqs=ssl.CERT_REQUIRED)
    
    ssl_sock.connect(('www.verisign.com', 443))
    
    print repr(ssl_sock.getpeername())
    print ssl_sock.cipher()
    print pprint.pformat(ssl_sock.getpeercert())
    
    # Set a simple HTTP request -- use httplib in actual code.
    ssl_sock.write("""GET / HTTP/1.0\r
    Host: www.verisign.com\r\n\r\n""")
    
    # Read a chunk of data.  Will not necessarily
    # read all the data returned by the server.
    data = ssl_sock.read()
    print repr(data)[:79]
    
    # note that closing the SSLSocket will also close the underlying socket
    ssl_sock.close()
    

    Output

    (ip, 443)
    ('DHE-RSA-AES256-SHA', 'TLSv1/SSLv3', 256)
    {'notAfter': 'May 25 23:59:59 2012 GMT',
     'subject': ((('1.3.6.1.4.1.311.60.2.1.3', u'US'),),
                 (('1.3.6.1.4.1.311.60.2.1.2', u'Delaware'),),
                 (('businessCategory', u'V1.0, Clause 5.(b)'),),
                 (('serialNumber', u'2497886'),),
                 (('countryName', u'US'),),
                 (('postalCode', u'94043'),),
                 (('stateOrProvinceName', u'California'),),
                 (('localityName', u'Mountain View'),),
                 (('streetAddress', u'487 East Middlefield Road'),),
                 (('organizationName', u'VeriSign, Inc.'),),
                 (('organizationalUnitName', u' Production Security Services'),),
                 (('commonName', u'www.verisign.com'),))}
    'HTTP/1.1 200 OK\r\nDate: Thu, 19 Jan 2012 01:47:31 GMT\r\nServer: Apache\r\nSe
    

    Example with M2Crypto.

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

Sidebar

Related Questions

http://t-webdesign.co.uk/new/ How would i go about getting the grey div (#content_right) to expand to
How exactly would one go about getting an OpenGL app to run fullscreen straight
Any ideas how I would go about writing a javascript method to insert an
I would like to know how I would go about altering the HTML that
Anyone have any idea how I would go about converting a timestamp in milliseconds
Before anything, I should admit that I am completely a newbie about Java Swing.
I've converted hello world to QR Barcode image but my question is about getting
Just wondering how you would go about implementing something similar to stackoverflow'd related questions.
Just a quick question about how you would go about implementing this. I want
I'm wondering how you would go about designing a good permgen space string in

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.