Fixed an import error, added http/https parsing