<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Javier,</p>
<p>According to <a class="moz-txt-link-freetext" href="https://httpwg.org/specs/rfc7233.html#header.range">https://httpwg.org/specs/rfc7233.html#header.range</a> ,
HTTP Range requests only apply to GET requests. So COGs delivered
through POST can indeed only be usable after full download.</p>
<p>BTW, someone should ask CNIG to include GeoTIFF SRS tags. At
least, for file
pnt_sentinel2_2020_invierno_mosaico_islas_canarias_b843_hu28_8bits.tif
which has only ModelTiepointTag and ModelPixelScaleTag geotiff
keys giving the geospatial extent, but no CRS keys.</p>
<p>Even<br>
</p>
<div class="moz-cite-prefix">Le 02/01/2024 à 13:14, Javier Jimenez
Shaw via gdal-dev a écrit :<br>
</div>
<blockquote type="cite"
cite="mid:CADRrdKvusz8UsaHyVMGLXN+zR8+7Q=sg-qQVVGDb9hMNAZSD=A@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">
<div>Hi</div>
<div><br>
</div>
<div>Does it make any sense to provide COG via HTTP POST method?</div>
<div>If I understand correctly, the "magic" of downloading only
what is needed from the server is done with HTTP Range
requests. But I am not sure if that works in POST method (it
does work in GET method, when enabled ;).<br>
</div>
<div>In case it could work with POST, I do not know how to tell
GDAL or QGIS to use a POST method.</div>
<div><br>
</div>
<div>Why am I asking this? the CNIG (Natial Center of Geographic
Information in Spain) is doing it.</div>
<div><a
href="https://centrodedescargas.cnig.es/CentroDescargas/index.jsp"
moz-do-not-send="true" class="moz-txt-link-freetext">https://centrodedescargas.cnig.es/CentroDescargas/index.jsp</a>
The link is just the starting point. Unfortunately they do not
provide link to the final page where you can download the
files (yes, ugly).<br>
</div>
<div><br>
</div>
<div>So for now I have to download the full file, and do
whatever I want later.</div>
<div><br>
</div>
<div>Thanks</div>
<div>Javier<br>
</div>
<div>
<div>
<div dir="ltr" class="gmail_signature"
data-smartmail="gmail_signature">
<div dir="ltr">
<div>.___ ._ ..._ .. . ._. .___ .. __ . _. . __.. ...
.... ._ .__</div>
</div>
</div>
</div>
</div>
</div>
<br>
<fieldset class="moz-mime-attachment-header"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
gdal-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/gdal-dev">https://lists.osgeo.org/mailman/listinfo/gdal-dev</a>
</pre>
</blockquote>
<pre class="moz-signature" cols="72">--
<a class="moz-txt-link-freetext" href="http://www.spatialys.com">http://www.spatialys.com</a>
My software is free, but my time generally not.</pre>
</body>
</html>