Hi reswobslc,
Thanks for your input, but I need it to run as a console application as well. That's why I use TcpClient. And I think I need to use sslStream, but not figure out how to do it yet. I'm quite new to XML and socket programming.
Could you help me with the TcpClient naked socket to work on a https URL?
Main Topics
Browse All Topics





by: reswobslcPosted on 2008-07-30 at 00:00:59ID: 22118014
This is not HTTP. This is simply sending XML through a naked socket, and getting a response back.
You don't construct one directly, rather you WebRequest.Create(URL) and cast it to an HttpWebRequest. This supports HTTP and HTTPS identically - adding HTTPS is as simple as inserting the extra "s" into the URL.
The class for making this web request via HTTP is System.Net.HttpWebRequest.