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

Wednesday, 20 June 2012

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

This is an error when you try to call a URL containing {} or [] at NN position.

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

how I used it

/usr/bin/curl -s http://somesite.ca/api?filter[date]=last_12_hours

solution: by using --globoff

/usr/bin/curl -s --globoff http://somesite.ca/api?filter[date]=last_12_hours

Credit:
https://bbs.archlinux.org/viewtopic.php?id=74675

 Digg  Del.icio.us  Reddit  SlashDot