MSDOTnet.org Forum Index
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

SslStream and HttpListener

 
Post new topic   Reply to topic    MSDOTnet.org Forum Index -> C Sharp
Author Message
Ashish Kaila



Joined: 13 Dec 2007
Posts: 2

PostPosted: Thu Dec 13, 2007 8:39 am    Post subject: SslStream and HttpListener Reply with quote

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.

Archived from group: microsoft>public>dotnet>languages>csharp
Back to top
View user's profile Send private message
Kevin Spencer



Joined: 08 Aug 2007
Posts: 67

PostPosted: Thu Dec 13, 2007 12:52 pm    Post subject: Re: SslStream and HttpListener Reply with quote

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" wrote in message @microsoft.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.
Back to top
View user's profile Send private message
Ashish Kaila



Joined: 13 Dec 2007
Posts: 2

PostPosted: Thu Dec 13, 2007 10:11 am    Post subject: Re: SslStream and HttpListener Reply with quote

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" wrote in message @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" wrote in message
> @microsoft.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.
>
>
Back to top
View user's profile Send private message
Kevin Spencer



Joined: 08 Aug 2007
Posts: 67

PostPosted: Fri Dec 14, 2007 1:01 pm    Post subject: Re: SslStream and HttpListener Reply with quote

You create an HttpRequest to the HttpHandler.

--
HTH,

Kevin Spencer
Chicken Salad Surgeon
Microsoft MVP

"Ashish Kaila" wrote in message @microsoft.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" wrote in message
> @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" wrote in message
>> @microsoft.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.
>>
>>

Back to top
View user's profile Send private message
Display posts from previous:   
Related Topics:
DEVPATH is not set. Falling through to regular bind. I have configured my file to have the section and defined the DEVPATH as follows: What would cause the log viewer show that DEVPA

Format Hi! I have a on a DataGrid bound to a DataColumn of type float (Single). I've set the to "N" and data displays correctly, but if I type a number large enough to contain a Thousand separator it returns an

installing .NET 1.1 problems on VISTA I have .NET 2.0 on a VISTA machine and am trying to install .NET 1.1 It is failing with the following error in Events Viewer: Source: MsiInstaller Event ID: 1030 Description: Product: Microsoft .NET Framework 1.1. The application tried to inst

X509CertificateStore I cna't seem to find it anymore. Where did it go. It isn't in any of the following: using using Have it been removed or changed?

Combobox performance I've measured the execution time of the following code, and it's variable from 0,5 sec to 1 sec.. How I can improve for (int i = 0; i < 8; i++) { myCombobox1[ i myCombobox1[ i myCombobox2[ i
Post new topic   Reply to topic    MSDOTnet.org Forum Index -> C Sharp All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group