Need some help with socket programming.
-
I am using VB.net, but samples in any language will do. The problem is that I have to connect to a secure site with an invalid certificate. Every browser based control fails, so I have turned to raw sockets. The website is for internal use only, however its certificate is unverified. I need to know what commands to send and how to respond over https. My socket app, so far, can connect to http, and even view pages. On https, any command like GET
/url?parameters HTTP/1.1
gives me an empty response. Thanks in advance.~ Soumya92
-
I am using VB.net, but samples in any language will do. The problem is that I have to connect to a secure site with an invalid certificate. Every browser based control fails, so I have turned to raw sockets. The website is for internal use only, however its certificate is unverified. I need to know what commands to send and how to respond over https. My socket app, so far, can connect to http, and even view pages. On https, any command like GET
/url?parameters HTTP/1.1
gives me an empty response. Thanks in advance.~ Soumya92
Have you tried using ServicePointManager.ServerCertificateValidationCallback[^]?
Mark Salsbery Microsoft MVP - Visual C++ :java:
-
Have you tried using ServicePointManager.ServerCertificateValidationCallback[^]?
Mark Salsbery Microsoft MVP - Visual C++ :java:
-
Soumya92 wrote:
now I cannot send any POST commands
What do you mean "cannot"?
Mark Salsbery Microsoft MVP - Visual C++ :java:
-
Soumya92 wrote:
now I cannot send any POST commands
What do you mean "cannot"?
Mark Salsbery Microsoft MVP - Visual C++ :java:
-
Everytime I POST data to the server, a webexception is thrown: The underlying connection was closed.
~ Soumya92
Soumya92 wrote:
a webexception is thrown
WHAT exception? Is the server configured to not accept POST?
Mark Salsbery Microsoft MVP - Visual C++ :java:
-
Soumya92 wrote:
a webexception is thrown
WHAT exception? Is the server configured to not accept POST?
Mark Salsbery Microsoft MVP - Visual C++ :java: