refactor http proxy and timeout
refactor http proxy and timeout