demo for http connection