http download attachment util