single_upload_page.jsp:
URL url = new URL("https://svn-harini.forge.cloudbees.com/Server1/");
out.println("URL"+url);
HttpURLConnection http = (HttpURLConnection)url.openConnection();
FileOutputStream fileOut= new FileOutputStream(http.getURL()+saveFile);
fileOut.write(dataBytes, startPos, (endPos - startPos));
fileOut.flush();
fileOut.close();
在部署它时假设 url 为 https:/ 而不是 https:// .... 我需要在 forge 存储库中保存一个文件...但是当我通过这个 url 我得到这个错误...