comp.lang.ada
 help / color / mirror / Atom feed
From: Okasu <oka.sux@gmail.com>
Subject: ZLIB_ERROR with AWS
Date: Sat, 20 Oct 2012 00:35:16 +0000 (UTC)
Date: 2012-10-20T00:35:16+00:00	[thread overview]
Message-ID: <slrnk83sci.9vf.oka.sux@localhost.localdomain> (raw)

Hello, i'm getting "raised ZLIB.ZLIB_ERROR : DATA_ERROR: incorrect header check"
with this code:

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

procedure Test
is
  Limit   : Content_Range := (1, 3000);
  Content : Data := Get (URL => "http://www.reddit.com/", Data_Range => Limit);
begin
  null;
end Test;
-----

With other(Non https) links it works fine, but not with reddit.

This code works fine with reddit:
-----
with AWS.Client;   use AWS.Client;
with AWS.Response; use AWS.Response;

procedure Test
is
  Content : Data := Get ("http://www.reddit.com/");
begin
  null;
end Test;
-----

Questions:
1) How can i use Get with HTTPS
   I'm getting "raised CONSTRAINT_ERROR : aws-url.adb:338 range check
   failed" after attempt to get certificate from host and use as Get
   Certificate argument. Code:
   -----
   Cert : AWS.Net.SSL.Certificate.Object :=
     Get_Certificate (Create (AWS.URL.Host (AWS.URL.Parse (Link))));
   -----
2) How can i use Data_Range with redditlike resources?




             reply	other threads:[~2012-10-20  0:35 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-20  0:35 Okasu [this message]
2012-10-20  7:23 ` ZLIB_ERROR with AWS Okasu
2012-10-20  7:47   ` Dmitry A. Kazakov
2012-10-20  8:32     ` Okasu
2012-10-20  9:04       ` Dmitry A. Kazakov
2012-10-20 20:46         ` Okasu
2012-10-20 20:58           ` Pascal Obry
2012-10-20 21:15             ` Okasu
2012-10-20 21:25               ` Pascal Obry
2012-10-20 21:30                 ` Okasu
2012-10-20 22:26                   ` Okasu
2012-10-21  7:29                     ` Pascal Obry
2012-10-21 10:22                     ` Marius Amado-Alves
2012-10-21 20:44                       ` Okasu
2012-10-22  5:38                         ` Pascal Obry
2012-10-22  8:08                           ` Okasu
2012-10-22 15:39                             ` Pascal Obry
2012-10-21  6:17           ` darkestkhan
replies disabled

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