avatar
How to read SSL Socket stream?# DotNet - 窗口里的风景
y*o
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
avatar
y*o
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

avatar
b*u
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.
avatar
y*o
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.

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。