comp.lang.ada
 help / color / mirror / Atom feed
* ZLIB_ERROR with AWS
@ 2012-10-20  0:35 Okasu
  2012-10-20  7:23 ` Okasu
  0 siblings, 1 reply; 18+ messages in thread
From: Okasu @ 2012-10-20  0:35 UTC (permalink / 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?




^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2012-10-29  2:40 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-10-20  0:35 ZLIB_ERROR with AWS Okasu
2012-10-20  7:23 ` 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

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