[AWS] AWS in GPS misses SSL on windows

Andrea A Andrea69x at hotmail.it
Sun Sep 1 12:23:44 CEST 2019


Hi,
I’m using GPS ide to write an ada program to download an html page thorw HTTPS. But on Windows it works only with HTTP.
The following code works:

with AWS.Client;
with AWS.Response;
with AWS.Net;

with Ada.Text_IO; use Ada.Text_IO;

procedure Default.Main is
   Connection : AWS.Client.HTTP_Connection;
   Result   : AWS.Response.Data;
begin

  AWS.Client.Create (Connection,
           "http://arin.ga",
           Persistent  => True,
           Timeouts    => AWS.Client.No_Timeout);

  AWS.Client.Get(Connection, Result);

  AWS.Client.Close (Connection);

  Put_Line (AWS.Response.Message_Body(Result));


end Default.Main;

If i change  "http://arin.ga"  to  "https://arin.ga"  i get the Runtime exception

“raised PROGRAM_ERROR : default-main.adb:8 finalize/adjust raised exception”

I red that this should depens on including SSL in AWS building, however I have download GPS from community site and it don’t work. I’ve not idea how to rebuild AWS on Windows with SSL support
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/aws/attachments/20190901/ce16bae2/attachment.html>


More information about the AWS mailing list