×

Discussion Board

Results 1 to 2 of 2

Thread: SSL example

  1. #1
    Regular Contributor
    Join Date
    Jan 2006
    Location
    CPH, Denmark
    Posts
    64

    Question SSL example

    Hi

    Does anyone has a working ssl client socket example?

    Kind regards Mads

  2. #2
    Regular Contributor
    Join Date
    Jan 2006
    Location
    CPH, Denmark
    Posts
    64

    Re: SSL example

    Quote Originally Posted by madsbjoern View Post
    Hi

    Does anyone has a working ssl client socket example?

    Kind regards Mads
    I still got the problem - does anyone has any working example? I'm using the emulator with the following testcode:

    Code:
    import socket
    
    s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
    s.connect(('www.verisign.com', 443))
    
    ssl_sock = socket.ssl(s)
    
    
    # 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()
    
    # Note that you need to close the underlying socket, not the SSL object.
    del ssl_sock
    s.close()

Similar Threads

  1. What are the differences between different SSL Providers?
    By zorpian in forum Wired and Wireless interfaces (Closed)
    Replies: 0
    Last Post: 2006-12-01, 09:13
  2. Nokia 6600 IMAP client with unsigned SSL certificates
    By ville_vaten in forum Symbian Networking & Messaging (Closed)
    Replies: 1
    Last Post: 2004-03-02, 13:26

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×