Re: sslstream and certificates

From: Joe Kaplan \(MVP - ADSI\) (joseph.e.kaplan_at_removethis.accenture.com)
Date: 05/27/05


Date: Fri, 27 May 2005 12:06:15 -0500

I guess I'm just not sure of what exactly it is you are doing. If your goal
is to have a WinForms app communicate with a web server programmatically,
.NET includes a System.Net.HttpWebRequest class that you can use for doing
programmatic HTTP protocol stuff, including SSL.

If your goal is to implement a custom HTTP Server, then it seems like it
would be easiest to using the built in model in ASP.NET and use its
extensibility mechanisms to implement your own HTTP handlers.

However, if you really want raw stream based data that is SSL encrypted,
then SslStream is probably the way to go. It really depends on the problem
you are trying to solve and the level of abstraction you want.

Glad you are making progress anyway.

Joe K.

"Jakob Nielsen" <a@b.c> wrote in message
news:%23086amtYFHA.132@TK2MSFTNGP10.phx.gbl...
>> This is something I have no idea on. Sorry.
>
> No, I am sorry. It seems the problem was somewhere else. With a minimal
> test, I could get data through. I will just have to debug a bit more.
>
>> It sounds like you are trying to implement your own web server. Wouldn't
>> it be easier to implement this using ASP.NET instead (write a custom
>> IHttpHandler or something)?
>
> Perhaps it would. I am still fairly new to .net, så there are a lot of
> clases which I don't know about. It is not a webserver as such though. It
> is a system which provides a web interface as well as one with winforms.
>
> Asp is running from a webserver is it not? Can I use bits and pieces of
> asp in a winforms application to create a basic http-server?
>



Relevant Pages

  • Re: Tools für automatische Tests von Winforms-Anwendungen?
    ... zu ASP.NET gibt es reichlich (ein Wrapper um HTTP zu schreiben ist ja auch ... keine große Kunst ....) ... bei WinForms habe ich nur wenig gefunden (genauer: nUnitForms, ...
    (microsoft.public.de.german.entwickler.dotnet.csharp)
  • How to access Data from Winforms-Appl. in a WEB-Service
    ... via SOAP / HTTP. ... I dont know how to access variables from the Winforms Application ... Is it than possible to exchange data between Winforms and WEB-Service. ...
    (microsoft.public.dotnet.framework.aspnet.webservices)
  • How to access Data from Winforms-Appl. in a WEB-Service
    ... via SOAP / HTTP. ... I dont know how to access variables from the Winforms Application ... Is it than possible to exchange data between Winforms and WEB-Service. ...
    (microsoft.public.dotnet.framework.aspnet.webservices)
  • Re: HOWTO Send an email to a Web Server.
    ... Email is handled with a totally different protocol than a web page ... (HTTP), so no, you cannot "send email to a web server / ASP page" because ... It is possible for a web server / ASP page to use ANOTHER component to ...
    (microsoft.public.inetserver.iis)
  • How to distinguish WinForms from ASP .NET?
    ... web services to winforms and ... windows services. ... I would like to do one things if it is called from asp ... and other if it is called from WinForms app. ...
    (microsoft.public.dotnet.languages.vb)