Establishing Http Connection in the background