Change http call to tcp call