Home » U++ Library support » U++ MT-multithreading and servers » https - how to?
Re: https - how to? [message #9236 is a reply to message #9187] |
Mon, 23 April 2007 08:55 |
fallingdutch
Messages: 258 Registered: July 2006
|
Experienced Member |
|
|
Hi WebChaot, sorry for the late reply, my box was down.
WebChaot wrote on Fri, 20 April 2007 10:37 |
if(usessl)
{
if(sslcontext.IsEmpty())
{
SSL_METHOD *meth=TLSv1_client_method();
sslcontext.Create(meth);
sslcontext.VerifyPeer(false);
}
if(!SSLClientSocket(http.socket,sslcontext,http.host,http.po rt))
{
PromptOK("No SSL");
return;
}
MyResult = http.Execute();
1. What I get, when I download an URL (https://...) is only a "No SSL" which still results from SSLClientSocket. Is there any way to check, whats wrong now?
|
The bold line could be the problem, i used the newest encryption in my server/client but the webserver you are connecting might not be - so you should use one of the following const SSL_METHOD *SSLv2_client_method(void);
const SSL_METHOD *SSLv3_client_method(void);
Quote: |
And how does it work? When I disable usessl, but connect to an "https"-site, I get a response. Will I have to parse URL for the "s" by code to check, if I have to "usessl"?
|
Many Servers reply with a "you should connect to this server usring ssl" site.
Well if you just have a url: Yes because in normal case https is on port 443 and http on port 80. So you even have to connect to different ports.
Quote: |
First I want to get any response from a https-site. Then I will continue to play around with certificates.
|
i hope you will be able if you play around with the changes above
Quote: |
2. I tried to get content of an local webserver via http://192.168.x.y (without ssl) and the program hang up. Does it not work with ip-adresses?
|
what do you set as port and host?
you have to set the ip as host and port to 80 to connect to a http-server
Quote: |
3. After first run I got an error message because of missing msvcr71.dll. I downloaded it and copied to windows dir. As I read its a c-runtime-library. I thought, when I have all openssl-sources I would not need any extra dll. Is there a way to include openssl without a dll (because I only want one exe-file, if possible)?
|
I am Sorry, but i don't know - using linux here, but will soon play with windows, too.
greetings from Baden-Württemberg
Bas
|
|
|
Goto Forum:
Current Time: Sun May 12 22:32:28 CEST 2024
Total time taken to generate the page: 0.01650 seconds
|