comp.lang.ada
 help / color / mirror / Atom feed
From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: libcurl with Ada - how to HTTP POST transfer with large file upload
Date: Fri, 13 Sep 2019 09:49:17 +0200
Date: 2019-09-13T09:49:17+02:00	[thread overview]
Message-ID: <qlfhlv$1sgq$1@gioia.aioe.org> (raw)
In-Reply-To: 96ceadae-90dd-4781-9223-3a50ad1668ef@googlegroups.com

On 2019-09-13 05:28, Matt Borchers wrote:
> A recent situation has caused some previously working code (written in Ada 95 era) to stop working.  What has changed is updating from using a very old compiler (GNAT 6.3.0) and AWS (Ada Web Server) v2.3.0 to the latest available.

[...]

Why do you use curl? Is it server or client you write?

It looks like you need to do PUT or POST with chunked transfer of the 
body taken from a file stream.

I am sure that AWS HTTP client can do that. E.g. the Simple Component's 
HTTP client can take the body from any source. When the length of the 
body is not specified the source provider determines the sizes of 
chunks. E.g. if the source is a file you read into buffer and give the 
buffer back. The buffer size is the chunk size. I suppose that AWS has 
something alike.

-- 
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de


  reply	other threads:[~2019-09-13  7:49 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-09-13  3:28 libcurl with Ada - how to HTTP POST transfer with large file upload Matt Borchers
2019-09-13  7:49 ` Dmitry A. Kazakov [this message]
2019-09-13 14:51 ` Shark8
2019-09-13 17:41   ` Matt Borchers
2019-09-13 19:13     ` Dmitry A. Kazakov
2019-09-14  2:31       ` Matt Borchers
2019-09-14 22:14         ` Keith Thompson
replies disabled

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