-
-
Notifications
You must be signed in to change notification settings - Fork 305
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
29 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# IPFS | ||
|
||
IPFS is the *Inter-Planetary File System*. curl supports IPFS only via a *HTTP | ||
gateway*. It means that it understands IPFS URLs when given to it, but you | ||
must also provide a working gateway URL for curl to use to retrieve the | ||
content. curl does not speak IPFS natively. | ||
|
||
## Gateway | ||
|
||
The `--ipfs-gateway` lets the user specify the IPFS HTTP gateway URL. Like this: | ||
|
||
curl --ipfs-gateway http://localhost:8080 ipfs://bafybeigagd5nmnn2iys2f3d/ | ||
|
||
If you opt to go for a remote gateway you should be aware that you completely | ||
trust the gateway. This is fine in local gateways as you host it yourself. | ||
With remote gateways there could potentially be a malicious actor returning | ||
you data that does not match the request you made, inspect or even interfere | ||
with the request. You will not notice this when getting IPFS using curl. | ||
|
||
If the `--ipfs-gateway` option is not used, curl will check the `IPFS_GATEWAY` | ||
environment variable for guidance and if not set, the `~/.ipfs/gateway` file | ||
that can be used to identify the gateway. | ||
|
||
IPFS support was first added to curl in version 8.4.0. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters