accept different ports for multiple hosts
use URL module to parse host
Merge pull request #367 from weili-feedhenry/master

accept different ports for multiple hosts