downloadData now uses the first available method for http transfer

backported from 0.9