setRequestProperty method giving java.lang.IllegalStateException: Cannot set method after connection is made

后端 未结 3 1267
忘掉有多难
忘掉有多难 2020-12-11 19:14
HttpURLConnection con = null;
        Response response = new Response();
        String TAG = \"HttpConHandler\";

        try{
            /*
             * IMPORT         


        
3条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-11 20:06

    Don't use URL's convenience method, either use an HttpURLConnection or other library.

提交回复
热议问题