String str="http://127.0.0.1:8080/httpFile/test.txt";
System.out.println("urlstr---->"+str);
try {
URL url = new URL(str);
HttpURLConnection connection = (HttpURLConnection)url.openConnection();
connection.setRequestMethod("POST");
connection.setRequestProperty("Charset","UTF-8");
connection.connect();
int file_leng = connection.getContentLength();
System.out.println("file length---->"+file_leng);
BufferedInputStream bin = new BufferedInputStream(
System.out.println("urlstr---->"+str);
try {
URL url = new URL(str);
HttpURLConnection connection = (HttpURLConnection)url.openConnection();
connection.setRequestMethod("POST");
connection.setRequestProperty("Charset","UTF-8");
connection.connect();
int file_leng = connection.getContentLength();
System.out.println("file length---->"+file_leng);
BufferedInputStream bin = new BufferedInputStream(