Only rewrite host:port if port is not 80.
Set curl connection timeout.