I was thinking shower rail too, but to be honest, I don't think it'll hold much. You'd be surprised how quickly it would fall down.
One option would be a pull up bar
But it is probably an expensive option, added to which, the amount you need to screw these things my make the cupboard sides bulge.
What kind of furniture have you got? Most are modular in nature, so you could potentially pay a visit to somewhere like Micasa, Fly or Ikea to get the rod and fix it using the parts that come with it.