comp.lang.ada
 help / color / mirror / Atom feed
From: eduardsapotski@gmail.com
Subject: AWS HTTPS Request
Date: Wed, 21 Feb 2018 23:22:31 -0800 (PST)
Date: 2018-02-21T23:22:31-08:00	[thread overview]
Message-ID: <e30e0fb4-fc3d-4787-a447-25069d45310e@googlegroups.com> (raw)

------------------------------------
with Ada.Text_IO; use Ada.Text_IO;
with AWS.Client;
with AWS.Response;

procedure Main is
   resp : AWS.Response.Data;
begin
   resp := AWS.Client.Get (URL => "http://sourceforge.net/");
   Put_Line (AWS.Response.Message_Body (resp));
end Main;
------------------------------------
It works!
------------------------------------
with Ada.Text_IO; use Ada.Text_IO;
with AWS.Client;
with AWS.Response;

procedure Main is
   resp : AWS.Response.Data;
begin
   resp := AWS.Client.Get (URL => "https://sourceforge.net/");
   Put_Line (AWS.Response.Message_Body (resp));
end Main;
------------------------------------
This does not work!

raised PROGRAM_ERROR : aws-client.adb:391 finalize/adjust raised exception
[2018-02-22 10:18:01] process exited with status 1, elapsed time: 00.20s

Why?

As I understand it, need to send a certificate to the server? Where can I get it?
Thanks!


             reply	other threads:[~2018-02-22  7:22 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-02-22  7:22 eduardsapotski [this message]
2018-02-22 15:19 ` AWS HTTPS Request Maxim Reznik
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox