[AWS] AWS.client.get and https

Tesson julien tesson.julien at free.fr
Mon Jan 14 20:59:01 CET 2008


Hi,
I'm new using aws and I just wanted to do a small test that retrieve a 
page from a https site but I can't  get it work.

here is my code :

with Aws.Client;
with Aws.Response;
with Ada.Text_IO;use Ada.Text_IO;
with Aws.Messages;
procedure Wifi_Idle is
   package Client renames Aws.Client;
   Url : String :="https://launchpad.net/";
   Rep : Aws.Response.Data := Client.Get(Url);
begin

   --     put(Aws.Response.Header(Rep));
   Put_line("ERROR CODE 
:"&Aws.Messages.Reason_Phrase(Aws.Response.Status_Code(Rep)));
   Put_line("body:"&Aws.Response.Message_Body(Rep));

end;

and here is the result :

raised AWS.CLIENT.CONNECTION_ERROR : can't connect to 
https://launchpad.net/ -> Exception name: AWS.NET.SOCKET_ERROR
Message: A TLS fatal alert has been received.

the same error appear for all https sites I have tried.

As someone an idea of what am I doing wrong ?

best regards,
Julien Tesson.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: tesson_julien.vcf
Type: text/x-vcard
Size: 330 bytes
Desc: not available
Url : /pipermail/aws/attachments/20080114/01659529/attachment.vcf 


More information about the AWS mailing list