Added http support, fixes #1