Using java class HttpsURLConnection

前端 未结 9 1460
孤独总比滥情好
孤独总比滥情好 2020-12-14 00:41

I have a small piece of code which basically impements a HTTP-Client, i.e. it POSTS request and works with re RESPONSE. As long as HTTP is concenerned everthing work well. F

9条回答
  •  不知归路
    2020-12-14 01:14

    Check your imports, you should be using

    java.net.HttpURLConnection
    

    or

    javax.net.ssl.HttpsURLConnection
    

提交回复
热议问题