I don't know about the US, but here in the UK it's illegal. Binmen are not permitted to keep things they find in domestic waste either.
There are still good ways for anyone to get food for free -
http://www.amazon.co.uk/Food-Free-Ri.../dp/0002201593
The genre equivelent of Brunson's 'super system.'