Initialize http connection