try {
URL u = new URL(ìhttp://www.sd98.com/î);
URLConnection uc = u.openConnection();
uc.connect();
String key=null;
for (int n = 1; (key = uc.getHeaderFieldKey(n)) != null; n++) {
System.out.println(key + ": " + uc.getHeaderField(key));
}
}
catch (IOException e) {
System.err.println(e);
Previous slide | Next slide | Back to first slide | View graphic version |