Skip to content

Commit 84c6882

Browse files
committed
PB-1024: add curl probe example
1 parent ec1476f commit 84c6882

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

download-data/stac-api/large-assets.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,25 @@ The S3 origin responds with `HTTP 206 Partial Content` and includes two useful h
1616

1717
The file is then downloaded chunk by chunk using `Range: bytes=<start>-<end>`, and the final file is verified against the expected size and checksum.
1818

19+
You can probe an asset manually with `curl`:
20+
21+
```bash
22+
curl --silent --show-error --location \
23+
--header "Range: bytes=0-0" \
24+
--dump-header - \
25+
--output /dev/null \
26+
"https://data.geo.admin.ch/ch.swisstopo.pixelkarte-farbe/pixelkarte-farbe/ch.swisstopo.pixelkarte-farbe_3857_0.5.tar"
27+
```
28+
29+
The response headers will contain the total size and checksum:
30+
31+
```
32+
HTTP/2 206
33+
content-range: bytes 0-0/102265118720
34+
x-amz-meta-sha256: <hex>
35+
...
36+
```
37+
1938
::: tip
2039
`HEAD` requests are **also blocked** by CloudFront for objects > 50 GB. Always use `GET` with a `Range` header to probe asset metadata.
2140
:::

0 commit comments

Comments
 (0)