import java.net.*;
import java.io.*;
class httpconnect {
public static void main(String[] args) throws Exception {
URL url = new URL("");
URLConnection spoof = url.openConnection();
spoof.setRequestProperty(
"User-Agent", "Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0; H010818)" );
BufferedReader in = new BufferedReader(new InputStreamReader(spoof.getInputStream()));
String strLine = "";
while ((strLine = in.readLine()) != null) {
System.out.println(strLine);
}
in.close();
}
} |