SslStream and HttpListener

A

Ashish Kaila

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.
 
K

Kevin Spencer

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
 
A

Ashish Kaila

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.
 
K

Kevin Spencer

You create an HttpRequest to the HttpHandler.

--
HTH,

Kevin Spencer
Chicken Salad Surgeon
Microsoft MVP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top