You Are Here:

Community: Developer Discussion Boards

#1 Old Question SSL example - 2007-09-18, 15:57

Join Date: Jan 2006
Posts: 64
Location: CPH, Denmark
madsbjoern's Avatar
madsbjoern
Offline
Regular Contributor
Hi

Does anyone has a working ssl client socket example?

Kind regards Mads
Reply With Quote

#2 Old Re: SSL example - 2007-09-21, 10:54

Join Date: Jan 2006
Posts: 64
Location: CPH, Denmark
madsbjoern's Avatar
madsbjoern
Offline
Regular Contributor
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()
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump
Similar Threads
Thread Thread Starter Forum Replies Last Post
What are the differences between different SSL Providers? zorpian Wired and Wireless interfaces 0 2006-12-01 10:13
Nokia 6600 IMAP client with unsigned SSL certificates ville_vaten Symbian Networking & Messaging 1 2004-03-02 14:26

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia