try using HTTPSConnection instead of the old HTTPS compatibility class