y********o 发帖数: 2565 | 1 I know some time ago, cyberspace asked about how to download a file
through HTTPS connection.
And some short time later, Dintern asked about how to tell if a
connection is HTTPS.
I think you guys had very good discussion about these problems.
I would like to go one step further. How do we read from an SSL socket
stream?
I've googled a little bit, but all I found is basic socket programming.
None touches upon secured connection.
Any idea on how to receive (or send) data through HTTPS connection | y********o 发帖数: 2565 | 2 The answer is probably here:
http://weblogs.asp.net/jan/archive/2003/12/04/41154.aspx
I think a9 shared the same idea
(cf: 3320 as of 11:52PM EST JUN 26,2007)
some time ago. a9 must be a high-hand.
【在 y********o 的大作中提到】 : I know some time ago, cyberspace asked about how to download a file : through HTTPS connection. : And some short time later, Dintern asked about how to tell if a : connection is HTTPS. : I think you guys had very good discussion about these problems. : I would like to go one step further. How do we read from an SSL socket : stream? : I've googled a little bit, but all I found is basic socket programming. : None touches upon secured connection. : Any idea on how to receive (or send) data through HTTPS connection
| b****u 发帖数: 1027 | 3 consuming ssl is not any different than consuming non ssl.
only difference is you can supply your own certificate policy, just check
HttpWebRequest's ssl policy property and see how to do it. but even that
should be optional.
just give it a try, it'll work just like http. | y********o 发帖数: 2565 | 4 Yes, I tried implementing my own certificate policy and accepting
any certificate. It works. The idea of a9.
【在 b****u 的大作中提到】 : consuming ssl is not any different than consuming non ssl. : only difference is you can supply your own certificate policy, just check : HttpWebRequest's ssl policy property and see how to do it. but even that : should be optional. : just give it a try, it'll work just like http.
|
|