LoginSignup
42
31

More than 5 years have passed since last update.

curlで[]とか{}を含むURLから取得する

Posted at

curlを使って、[]とか{}を含むURLへアクセスすると

curl: (3) [globbing] error: bad range specification after pos nnn

って感じのエラーがでる。

これを解決するには、--globoff を指定して上げればおk

curl --globoff "http://exsample.com/hoge?foo=var[xx]"
42
31
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
42
31