« [trashItemAtURL]ゴミ箱に入れる 修正その2 | トップページ | [CURL]ファイル名を調べて、指定したディレクトリに指定ファイル名でダウンロードする »

[エラー]curl: (18) HTTP/2 stream 1 was not closed cleanly before end of the underlying stream

# curl: (18) HTTP/2 stream 1 was not closed cleanly before end of the underlying stream
# Warning: Got more output options than URLs


【スクリプトエディタで開く】|

#!/bin/bash
###指定無し
/usr/bin/curl -L -o "/path/to/save"  "http://foo.hoge.coom/save"  --connect-timeout 20
## curl: (18) HTTP/2 stream 1 was not closed cleanly before end of the underlying stream
## Warning: Got more output options than URLs
###指定無しでエラーが出る場合はHTTP/1.1を指定してみる
/usr/bin/curl -L -o "/path/to/save"  "http://foo.hoge.coom/save"  --http1.1 --connect-timeout 20
###HTTP/2 指定時
/usr/bin/curl -L -o "/path/to/save"  "http://foo.hoge.coom/save"  --http2 --connect-timeout 20


|

« [trashItemAtURL]ゴミ箱に入れる 修正その2 | トップページ | [CURL]ファイル名を調べて、指定したディレクトリに指定ファイル名でダウンロードする »

CURL」カテゴリの記事