use http proxy if set.