FileDocCategorySizeDatePackage
AllMIMEHeaders.javaAPI DocExample755Sat Sep 09 20:52:24 BST 2000None

AllMIMEHeaders

public class AllMIMEHeaders extends Object

Fields Summary
Constructors Summary
Methods Summary
public static voidmain(java.lang.String[] args)


    for (int i=0; i < args.length; i++) {
      try {
        URL u = new URL(args[i]);
        URLConnection uc = u.openConnection();
        for (int j = 0; ; j++) {
          String header = uc.getHeaderField(j);
          if (header == null) break;
          System.out.println(uc.getHeaderFieldKey(j) + ": " + header);
        }  // end for
      }  // end try
      catch (MalformedURLException e) {
        System.err.println(args[i] + " is not a URL I understand.");
      }
      catch (IOException e) {
        System.err.println(e);
      }
      System.out.println();
    }  // end for