Curl
ネットワークからファイルを転送する。多様なプロトコルに対応している。
1 moli@pi:~/Desktop $ curl https://moli-green.xyz
2 hello www.
3 foo.
ポートを指定するならこう。
1 curl https://moli-green.xyz:443/
ファイルを保存する。
1 curl -o index.html https://moli-green.xyz
-s-
サイレントモード
-H-
HTTPヘッダーを追加。
@filenameでファイルを使用。@-で標準入力を使用。
1 curl -s -H "foo: 1" -H "bar: 2" localhost:8001