Jump to content

mkg

Members
  • Content Count

    4
  • Joined

  • Last visited

Community Reputation

0 Neutral
  1. I meant that my example will work successfully in another place only if there are DLL files next to it. Otherwise, we get the code 404. I'm used to the fact that my programs can work independently in any place where there is Windows and the Internet. So it was when using the Synapse library. Therefore, it would be preferable for me to create an application that also works independently. I'm not going to sell my application. It is for personal use. In the terms of the YuOpenSSL license, I read that free use is possible for such cases.
  2. I installed V8.70. I created a new project, put TSslHttpRest on the form and was able to get a successful compilation and linking. To do this, among other things, I had to connect a copy of the OverbyteIcsWinCrypt.hpp file to the project and comment out a number of lines in it to avoid errors. I included the files libssl-3.dll and libcrypto-3.dll to the project. void __fastcall TForm1::Button1Click(TObject *Sender){ AnsiString ss; int ii; short nn; bool async; ss="..\\OpenSSL-Win32//"; GSSL_DLL_DIR=ss; //GSSLEAY_DLL_IgnoreNew=true; // { ignore OpenSSL 3.0 and later } GSSLEAY_DLL_IgnoreOld=false; ss="https://google.com"; THttpRequest req=httpGET; AnsiString raw_prams=""; async=false; //async=true; SslHttpRest1->RestParams->Clear(); ii=-1; ii=SslHttpRest1->RestRequest(req, ss, async, raw_prams); ii=SslHttpRest1->StatusCode; // 200 Edit1->Text=IntToStr(ii); ss=SslHttpRest1->ContentType; ss=SslHttpRest1->ResponseRaw; } I got the code working, but the application required the libssl-3.dll and libcrypto-3.dll files. Then I downloaded YuOpenSSL. As I understand it, the file YuOpenSSL\D2009\YuOpenSSL.dcu must be linked on build application (CB2009 is not there). I tried to do as it is written in ReadMe8.txt. In the Library Path project setup, I added the path to file YuOpenSSL.dcu. I had to connect a copy of the OverbyteIcsDefs.inc file to the project and replace {.DEFINE YuOpenSSL} to {$DEFINE YuOpenSSL}. But working code still requires the files libssl-3.dll and libcrypto-3.dll. Could you tell me what I did wrong and how to do it right?
  3. Hi all! In my application, maked with C++ Builder 2009, I used Synapse HTTP library for REST API requests. But with any URLs (https), and if my application run on my VPS server, requests always aborted with error: 500 Sock: 10091 error:14077438:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert internal error 336032824 500 Sock: 10091 error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol 336031996 ... I couldn't fix this errors. Then I try to use different HTTP library. The choice fell on Overbyte ICS (file icsv858.zip) Now I have installed Overbyte ICS Design-Time Package C++ Builder 2009. I maked sample project OverbyteIcsHttpsTst which was in the archive with the library. The project compiles without errors. On my home computer (Windows 8.1) where is installed C++ Builder 2009 ... - If I run this sample application with URLs http:// (for example http://synapse.ararat.cz) I have normal result. By default, application form has edit boxes with Certificate Files and keys: "01cert.pem" "01key.pem" "cacert.pem". - If I run this sample application with any URLs with https:// (for example https://google.com) and that edit boxes remain default values I have error: EAccessViolation: Access violation at address 0043F3C5 in module 'OverbyteIcsHttpsTst.exe'. Read of address 00000030 Request done, error #3 - If I run this sample application with URLs https:// and that edit boxes will be empty I have no error. On VPS server (Windows Server 2012) where is no installed C++ Builder 2009 ... - If I run this sample application with URLs http:// I have normal result. - If I run this sample application with URLs https:// and that edit boxes will be default or empty I have error: EAccessViolation: Access violation at address 0043F3C5 in module 'OverbyteIcsHttpsTst.exe'. Read of address 00000030 Request done, error #3 It's the same error I have in home with non-zero edit boxes. Can anyone help to fix this errors?
×