Skip to content

Instantly share code, notes, and snippets.

@alanshaw
Created May 19, 2023 14:19
Show Gist options
  • Save alanshaw/e67531c6b3c5b5675d6156c76b994069 to your computer and use it in GitHub Desktop.
Save alanshaw/e67531c6b3c5b5675d6156c76b994069 to your computer and use it in GitHub Desktop.
curling some dfs carz from dag.w3s.link
$ curl -v -H "Accept: application/vnd.ipld.car;order=dfs" https://dag.w3s.link/ipfs/bafybeibrqc2se2p3k4kfdwg7deigdggamlumemkiggrnqw3edrjosqhvnm --output my.dfs.car
...
> GET /ipfs/bafybeibrqc2se2p3k4kfdwg7deigdggamlumemkiggrnqw3edrjosqhvnm HTTP/2
> Host: dag.w3s.link
> user-agent: curl/7.77.0
> accept: application/vnd.ipld.car;order=dfs
>
...
< HTTP/2 200
< date: Fri, 19 May 2023 14:16:47 GMT
< content-type: application/vnd.ipld.car; version=1; order=dfs; dups=y
< accept-ranges: none
< access-control-allow-origin: *
< cache-control: public, max-age=29030400, immutable
< content-disposition: attachment; filename="bafybeibrqc2se2p3k4kfdwg7deigdggamlumemkiggrnqw3edrjosqhvnm.car"; filename*=UTF-8''bafybeibrqc2se2p3k4kfdwg7deigdggamlumemkiggrnqw3edrjosqhvnm.car
< etag: W/"bafybeibrqc2se2p3k4kfdwg7deigdggamlumemkiggrnqw3edrjosqhvnm.car"
< access-control-allow-methods: GET
< access-control-expose-headers: Content-Length
< x-content-type-options: nosniff
< x-freeway-version: 2.1.0
< server: cloudflare
< cf-ray: 7c9cf5b00b4a06b2-LHR
<
{ [59 bytes data]
100 31.8M 0 31.8M 0 0 7846k 0 --:--:-- 0:00:04 --:--:-- 7855k
* Connection #0 to host dag.w3s.link left intact
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment