actually today morning JOASH replied to an answer that using URL an input stream can be opened.
a diiferent server side file can be accessed from another server.
so i started ... a fantastic idea .... frnds.
but i have a problem with my code ....
import java.net.*;now read carefully my problems what i faced .....
import java.io.*;
class URLTest
{
public static void main(String args[]) throws Exception
{
URL l_url = new URL("http://www.thescripts.com/forum/forum130.html");
BufferedInputStream l_file = new BufferedInputStream(l_url.openStream());
int ch;
while((ch = l_file.read()) != -1) System.out.println(ch);
System.out.println("\n\n\nYahoo ......");
}
}
here an exception thrown is ..... UNKNOWN HOST EXCEPTION ... thescripts.
why???
if i modify the URL as
https://172.20.0.200/CoalNetPROD/common/jsp/login.jsp
actually it is our server where i m working .....here HTTPS used
here it tells that ... unknown URL specification HTTPS.
why???
plz tell me the URL class story ... when openStream method is called...
plz help guys....
kind regards.
dmjpro.