Is it possible for a site having URL starting with “http://” using HTTPS protocol

前端 未结 3 724
Happy的楠姐
Happy的楠姐 2020-12-19 05:07

I have a site whose URL starts with \"http://\" but that is giving me an exception with the message - Unsupported protocol: https. Is it possible that the site is using HTTP

3条回答
  •  粉色の甜心
    2020-12-19 05:25

    Another possibility is the HTTP address responding with a 3xx redirect response to an HTTPS URL, which your client tries to follow, but does not support. You can very by capturing the network traffic with tcpdump or wireshark.

    There are so many Java HTTP client libraries that do support HTTPS, why not switch to one of those?

提交回复
热议问题