By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
448,678 Members | 1,150 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 448,678 IT Pros & Developers. It's quick & easy.

SslStream and HttpListener

P: n/a
I have an asp.net website that my clients use via SSL. I need another http
communication within a postback to receive remote data to fulfill my current
postback request operation. I have to listen to this ssl/http request on
port 443 but a different uri prefix. If I use HttpListener, can I then use
SslStream on the Request.InputStream to receive and decrypt data? I saw
examples on the net where a different port was used and configured using
httpcfg.exe tool but my constraint binds me only to 443 and since IIS owns
that port I cannot use this tool.

Dec 13 '07 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Build an ASP.Net HttpHandler for that URI that handles the request, and pass
the information received to whatever you want to.

--
HTH,

Kevin Spencer
Chicken Salad Surgeon
Microsoft MVP

"Ashish Kaila" <as*********@hotmail.comwrote in message
news:30**********************************@microsof t.com...
>I have an asp.net website that my clients use via SSL. I need another http
communication within a postback to receive remote data to fulfill my
current postback request operation. I have to listen to this ssl/http
request on port 443 but a different uri prefix. If I use HttpListener, can
I then use SslStream on the Request.InputStream to receive and decrypt
data? I saw examples on the net where a different port was used and
configured using httpcfg.exe tool but my constraint binds me only to 443
and since IIS owns that port I cannot use this tool.

Dec 13 '07 #2

P: n/a
But how do I retrieve the information in the waiting postback session?
HttpHandler and postback are two different sessions. And I may have several
of the postback sessions. The way I was thinking of differentiating was to
choose a unique uri prefix every time.

"Kevin Spencer" <un**********@nothinks.comwrote in message
news:OC**************@TK2MSFTNGP03.phx.gbl...
Build an ASP.Net HttpHandler for that URI that handles the request, and
pass the information received to whatever you want to.

--
HTH,

Kevin Spencer
Chicken Salad Surgeon
Microsoft MVP

"Ashish Kaila" <as*********@hotmail.comwrote in message
news:30**********************************@microsof t.com...
>>I have an asp.net website that my clients use via SSL. I need another http
communication within a postback to receive remote data to fulfill my
current postback request operation. I have to listen to this ssl/http
request on port 443 but a different uri prefix. If I use HttpListener, can
I then use SslStream on the Request.InputStream to receive and decrypt
data? I saw examples on the net where a different port was used and
configured using httpcfg.exe tool but my constraint binds me only to 443
and since IIS owns that port I cannot use this tool.

Dec 13 '07 #3

P: n/a
You create an HttpRequest to the HttpHandler.

--
HTH,

Kevin Spencer
Chicken Salad Surgeon
Microsoft MVP

"Ashish Kaila" <as*********@hotmail.comwrote in message
news:6D**********************************@microsof t.com...
But how do I retrieve the information in the waiting postback session?
HttpHandler and postback are two different sessions. And I may have
several of the postback sessions. The way I was thinking of
differentiating was to choose a unique uri prefix every time.

"Kevin Spencer" <un**********@nothinks.comwrote in message
news:OC**************@TK2MSFTNGP03.phx.gbl...
>Build an ASP.Net HttpHandler for that URI that handles the request, and
pass the information received to whatever you want to.

--
HTH,

Kevin Spencer
Chicken Salad Surgeon
Microsoft MVP

"Ashish Kaila" <as*********@hotmail.comwrote in message
news:30**********************************@microso ft.com...
>>>I have an asp.net website that my clients use via SSL. I need another
http communication within a postback to receive remote data to fulfill my
current postback request operation. I have to listen to this ssl/http
request on port 443 but a different uri prefix. If I use HttpListener,
can I then use SslStream on the Request.InputStream to receive and
decrypt data? I saw examples on the net where a different port was used
and configured using httpcfg.exe tool but my constraint binds me only to
443 and since IIS owns that port I cannot use this tool.


Dec 14 '07 #4

This discussion thread is closed

Replies have been disabled for this discussion.