//
import java.io.*;
import java.net.*;
public class ValiditeURLConnexion {
public static void test(URL url)
throws IOException
{URLConnection c=url.openConnection();
DataInputStream dis =new DataInputStream(c.getInputStream());
dis.close();
}
public static void test(String s)
throws MalformedURLException,IOException
{test(new URL(s));}
}