use http or https modules depending on damn url