{"action":"created","issue":{"url":"https://api.github.com/repos/jkbrzt/httpie/issues/416","labels_url":"https://api.github.com/repos/jkbrzt/httpie/issues/416/labels{/name}","comments_url":"https://api.github.com/repos/jkbrzt/httpie/issues/416/comments","events_url":"https://api.github.com/repos/jkbrzt/httpie/issues/416/events","html_url":"https://github.com/jkbrzt/httpie/issues/416","id":118978516,"number":416,"title":"Feature Request: Brace Expansion, Range Notation in URLs","user":{"login":"CMCDragonkai","id":640797,"avatar_url":"https://avatars.githubusercontent.com/u/640797?v=3","gravatar_id":"","url":"https://api.github.com/users/CMCDragonkai","html_url":"https://github.com/CMCDragonkai","followers_url":"https://api.github.com/users/CMCDragonkai/followers","following_url":"https://api.github.com/users/CMCDragonkai/following{/other_user}","gists_url":"https://api.github.com/users/CMCDragonkai/gists{/gist_id}","starred_url":"https://api.github.com/users/CMCDragonkai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CMCDragonkai/subscriptions","organizations_url":"https://api.github.com/users/CMCDragonkai/orgs","repos_url":"https://api.github.com/users/CMCDragonkai/repos","events_url":"https://api.github.com/users/CMCDragonkai/events{/privacy}","received_events_url":"https://api.github.com/users/CMCDragonkai/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-26T06:15:50Z","updated_at":"2015-11-30T21:44:26Z","closed_at":null,"body":"Curl supports a type of range notation or brace expansion which is useful for downloading multiple files.\r\n\r\n```\r\nURL  \r\n       The URL syntax is protocol dependent. You’ll find a  detailed  descrip‐\r\n       tion in RFC 3986.\r\n\r\n       You  can  specify  multiple  URLs or parts of URLs by writing part sets\r\n       within braces as in:\r\n\r\n        http://site.{one,two,three}.com\r\n\r\n       or you can get sequences of alphanumeric series by using [] as in:\r\n\r\n        ftp://ftp.numericals.com/file[1-100].txt\r\n        ftp://ftp.numericals.com/file[001-100].txt    (with leading zeros)\r\n        ftp://ftp.letters.com/file[a-z].txt\r\n\r\n       No nesting of the sequences is supported at the moment, but you can use\r\n       several ones next to each other:\r\n\r\n        http://any.org/archive[1996-1999]/vol[1-4]/part{a,b,c}.html\r\n\r\n       You  can  specify  any amount of URLs on the command line. They will be\r\n       fetched in a sequential manner in the specified order.\r\n\r\n       Since curl 7.15.1 you can also specify step counter for the ranges,  so\r\n       that you can get every Nth number or letter:\r\n\r\n        http://www.numericals.com/file[1-100:10].txt\r\n        http://www.letters.com/file[a-z:2].txt\r\n```\r\n\r\nI tried using the URL variants in httpie and it didn't work. Perhaps httpie could support it?"},"comment":{"url":"https://api.github.com/repos/jkbrzt/httpie/issues/comments/160771310","html_url":"https://github.com/jkbrzt/httpie/issues/416#issuecomment-160771310","issue_url":"https://api.github.com/repos/jkbrzt/httpie/issues/416","id":160771310,"user":{"login":"sigmavirus24","id":240830,"avatar_url":"https://avatars.githubusercontent.com/u/240830?v=3","gravatar_id":"","url":"https://api.github.com/users/sigmavirus24","html_url":"https://github.com/sigmavirus24","followers_url":"https://api.github.com/users/sigmavirus24/followers","following_url":"https://api.github.com/users/sigmavirus24/following{/other_user}","gists_url":"https://api.github.com/users/sigmavirus24/gists{/gist_id}","starred_url":"https://api.github.com/users/sigmavirus24/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sigmavirus24/subscriptions","organizations_url":"https://api.github.com/users/sigmavirus24/orgs","repos_url":"https://api.github.com/users/sigmavirus24/repos","events_url":"https://api.github.com/users/sigmavirus24/events{/privacy}","received_events_url":"https://api.github.com/users/sigmavirus24/received_events","type":"User","site_admin":false},"created_at":"2015-11-30T21:44:26Z","updated_at":"2015-11-30T21:44:26Z","body":"> I tried using the URL variants in httpie and it didn't work. Perhaps httpie could support it?\r\n\r\nWhat made you expect that it would work?\r\n\r\nFor what it's worth, the bit of cURL documentation that you're quoting is a little misleadingly worded. The syntax here is *not* specified as part of RFC 3986. This behaviour is not standardized except in cURL's cli. Any work that httpie would do to detect this would ostensibly break any website which has those characters as part of the URL without the server being aware of this behaviour in cURL/httpie.\r\n\r\nThe only place this seems potentially reasonable is the `{}` expansion for a hostname but most shells should handle that for you."}}