Skip to content

Instantly share code, notes, and snippets.

@Kubuxu
Last active April 3, 2016 20:24
Show Gist options
  • Save Kubuxu/7e06b18c1d948197a90fdf3f2da4585f to your computer and use it in GitHub Desktop.
Save Kubuxu/7e06b18c1d948197a90fdf3f2da4585f to your computer and use it in GitHub Desktop.
IPFS gateways HEAD not working
dig ipfs.io +short | xargs -L1 -i -- curl -Iv --max-time 30 {}/ipfs/QmVLRLxc9jDTkF7KLnfUr9hSrB4QjuhRjBS9bGTmPfK5Lx/
* Trying 162.243.248.213...
* Connected to 162.243.248.213 (162.243.248.213) port 80 (#0)
> HEAD /ipfs/QmVLRLxc9jDTkF7KLnfUr9hSrB4QjuhRjBS9bGTmPfK5Lx/ HTTP/1.1
> Host: 162.243.248.213
> User-Agent: curl/7.47.1
> Accept: */*
>
* Operation timed out after 30001 milliseconds with 0 bytes received
* Closing connection 0
curl: (28) Operation timed out after 30001 milliseconds with 0 bytes received
* Trying 104.236.76.40...
* Connected to 104.236.76.40 (104.236.76.40) port 80 (#0)
> HEAD /ipfs/QmVLRLxc9jDTkF7KLnfUr9hSrB4QjuhRjBS9bGTmPfK5Lx/ HTTP/1.1
> Host: 104.236.76.40
> User-Agent: curl/7.47.1
> Accept: */*
>
* Operation timed out after 30001 milliseconds with 0 bytes received
* Closing connection 0
curl: (28) Operation timed out after 30001 milliseconds with 0 bytes received
* Trying 104.236.151.122...
* Connected to 104.236.151.122 (104.236.151.122) port 80 (#0)
> HEAD /ipfs/QmVLRLxc9jDTkF7KLnfUr9hSrB4QjuhRjBS9bGTmPfK5Lx/ HTTP/1.1
> Host: 104.236.151.122
> User-Agent: curl/7.47.1
> Accept: */*
>
* Operation timed out after 30001 milliseconds with 0 bytes received
* Closing connection 0
curl: (28) Operation timed out after 30001 milliseconds with 0 bytes received
* Trying 104.236.179.241...
* Connected to 104.236.179.241 (104.236.179.241) port 80 (#0)
> HEAD /ipfs/QmVLRLxc9jDTkF7KLnfUr9hSrB4QjuhRjBS9bGTmPfK5Lx/ HTTP/1.1
> Host: 104.236.179.241
> User-Agent: curl/7.47.1
> Accept: */*
>
* Operation timed out after 30001 milliseconds with 0 bytes received
* Closing connection 0
curl: (28) Operation timed out after 30001 milliseconds with 0 bytes received
* Trying 178.62.158.247...
* Connected to 178.62.158.247 (178.62.158.247) port 80 (#0)
> HEAD /ipfs/QmVLRLxc9jDTkF7KLnfUr9hSrB4QjuhRjBS9bGTmPfK5Lx/ HTTP/1.1
> Host: 178.62.158.247
> User-Agent: curl/7.47.1
> Accept: */*
>
* Operation timed out after 30001 milliseconds with 0 bytes received
* Closing connection 0
curl: (28) Operation timed out after 30001 milliseconds with 0 bytes received
* Trying 104.236.176.52...
* Connected to 104.236.176.52 (104.236.176.52) port 80 (#0)
> HEAD /ipfs/QmVLRLxc9jDTkF7KLnfUr9hSrB4QjuhRjBS9bGTmPfK5Lx/ HTTP/1.1
> Host: 104.236.176.52
> User-Agent: curl/7.47.1
> Accept: */*
>
* Operation timed out after 30001 milliseconds with 0 bytes received
* Closing connection 0
curl: (28) Operation timed out after 30001 milliseconds with 0 bytes received
* Trying 178.62.61.185...
* Connected to 178.62.61.185 (178.62.61.185) port 80 (#0)
> HEAD /ipfs/QmVLRLxc9jDTkF7KLnfUr9hSrB4QjuhRjBS9bGTmPfK5Lx/ HTTP/1.1
> Host: 178.62.61.185
> User-Agent: curl/7.47.1
> Accept: */*
>
* Operation timed out after 30001 milliseconds with 0 bytes received
* Closing connection 0
curl: (28) Operation timed out after 30001 milliseconds with 0 bytes received
dig ipfs.io +short | xargs -L1 -i -- curl -Iv --max-time 30 -H 'Host: ipfs.io' '{}/api/v0/refs?arg=QmVLRLxc9jDTkF7KLnfUr9hSrB4QjuhRjBS9bGTmPfK5Lx/'
* Trying 104.236.179.241...
* Connected to 104.236.179.241 (104.236.179.241) port 80 (#0)
> HEAD /api/v0/refs?arg=QmVLRLxc9jDTkF7KLnfUr9hSrB4QjuhRjBS9bGTmPfK5Lx/ HTTP/1.1
> Host: ipfs.io
> User-Agent: curl/7.47.1
> Accept: */*
>
* Operation timed out after 30001 milliseconds with 0 bytes received
* Closing connection 0
curl: (28) Operation timed out after 30001 milliseconds with 0 bytes received
* Trying 104.236.176.52...
* Connected to 104.236.176.52 (104.236.176.52) port 80 (#0)
> HEAD /api/v0/refs?arg=QmVLRLxc9jDTkF7KLnfUr9hSrB4QjuhRjBS9bGTmPfK5Lx/ HTTP/1.1
> Host: ipfs.io
> User-Agent: curl/7.47.1
> Accept: */*
>
* Operation timed out after 30001 milliseconds with 0 bytes received
* Closing connection 0
curl: (28) Operation timed out after 30001 milliseconds with 0 bytes received
* Trying 162.243.248.213...
* Connected to 162.243.248.213 (162.243.248.213) port 80 (#0)
> HEAD /api/v0/refs?arg=QmVLRLxc9jDTkF7KLnfUr9hSrB4QjuhRjBS9bGTmPfK5Lx/ HTTP/1.1
> Host: ipfs.io
> User-Agent: curl/7.47.1
> Accept: */*
>
* Operation timed out after 30001 milliseconds with 0 bytes received
* Closing connection 0
curl: (28) Operation timed out after 30001 milliseconds with 0 bytes received
* Trying 104.236.76.40...
* Connected to 104.236.76.40 (104.236.76.40) port 80 (#0)
> HEAD /api/v0/refs?arg=QmVLRLxc9jDTkF7KLnfUr9hSrB4QjuhRjBS9bGTmPfK5Lx/ HTTP/1.1
> Host: ipfs.io
> User-Agent: curl/7.47.1
> Accept: */*
>
* Operation timed out after 30000 milliseconds with 0 bytes received
* Closing connection 0
curl: (28) Operation timed out after 30000 milliseconds with 0 bytes received
* Trying 178.62.158.247...
* Connected to 178.62.158.247 (178.62.158.247) port 80 (#0)
> HEAD /api/v0/refs?arg=QmVLRLxc9jDTkF7KLnfUr9hSrB4QjuhRjBS9bGTmPfK5Lx/ HTTP/1.1
> Host: ipfs.io
> User-Agent: curl/7.47.1
> Accept: */*
>
* Operation timed out after 30001 milliseconds with 0 bytes received
* Closing connection 0
curl: (28) Operation timed out after 30001 milliseconds with 0 bytes received
* Trying 104.236.151.122...
* Connected to 104.236.151.122 (104.236.151.122) port 80 (#0)
> HEAD /api/v0/refs?arg=QmVLRLxc9jDTkF7KLnfUr9hSrB4QjuhRjBS9bGTmPfK5Lx/ HTTP/1.1
> Host: ipfs.io
> User-Agent: curl/7.47.1
> Accept: */*
>
* Operation timed out after 30001 milliseconds with 0 bytes received
* Closing connection 0
curl: (28) Operation timed out after 30001 milliseconds with 0 bytes received
* Trying 178.62.61.185...
* Connected to 178.62.61.185 (178.62.61.185) port 80 (#0)
> HEAD /api/v0/refs?arg=QmVLRLxc9jDTkF7KLnfUr9hSrB4QjuhRjBS9bGTmPfK5Lx/ HTTP/1.1
> Host: ipfs.io
> User-Agent: curl/7.47.1
> Accept: */*
>
* Operation timed out after 30001 milliseconds with 0 bytes received
* Closing connection 0
curl: (28) Operation timed out after 30001 milliseconds with 0 bytes received
ipfs dht findprovs QmVLRLxc9jDTkF7KLnfUr9hSrB4QjuhRjBS9bGTmPfK5Lx
QmdKbeXoXnMbPDfLsAFPGZDJ41bQuRNKALQSydJ66k1FfH
QmSoLueR4xBeUbY9WZ9xGUUxunbKWcrNFTDAadQJmocnWm
QmSoLPppuBtQSGwKDZT2M73ULpjvfd3aZ6ha4oFGL1KrGM
QmSoLnSGccFuZQJzRadHn95W2CrSFmZuTdDWP8HXaHca9z
QmXBYKRcp3s7oLheJ422vyvPSoyVMqu3jEjvS8iVSEKYso
QmRabJpJ4oEtXsLFADKyDdPST8BKG8XQFHZGTCLXFTG6dC
QmSoLMeWqB7YGVLJN3pNLQpmmEk35v6wYtsMGLzSr5QBU3
QmSoLju6m7xTh3DuokvT3886QRYqxAzb1kShaanJgW36yx
QmSoLer265NRgSp2LA3dPaeykiS1J6DifTC88f5uVQKNAd
QmSoLV4Bbm51jM9C4gDYZQ9Cy3U6aXMJDAbzgu2fzaDs64
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment