Modified to http connection