copy the httpadapter but except add a s or two for https