My code is as follows..
string p_aURL = "https://192.168.100.12/login_mainF.cgi ";
byte[] p_aAuthBytes = Encoding.ASCII. GetBytes("Admin istrator:MyPass word");
string p_sAuth = Convert.ToBase6 4String(p_aAuth Bytes);
HttpWebRequest p_aWebRequest = (HttpWebRequest )WebRequest.Cre ate(p_aURL);
HttpWebResponse p_aWebResponse = null;
...
User Profile
Collapse
-
In C# on line;
Stream streamPostData = p_aWebRequest.G etRequestStream ();
I get the following message;
The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel.Leave a comment:
-
SSL session
How can I establish an SSL session?!
When I connect to a SSL site using my browser, the SSL session is established. But when i try to do the same using C# I don't seem to be succesfull. Another problem that I don't understand is the fact that when I use my browser to connect to the IP address for instance https://192.168.100.12/advanced_status F.cgi the session is open and i can login. the problem arises when i copy the page to disk...
No activity results to display
Show More
Leave a comment: