That's actually legal in my homeland. There are specific conditions (e.g. personal use without economic goals) but it's generally OK. Note however that this applies to downloading from a server where the transfer goes one way. Torrenting would constitute copyright infringement as it is a two way transfer and counts as sharing copyrighted works.