Use gateway for http connections; Fix #55