What protocols are supported by the URL and URLConnection classes?
The protocols supported by URL and URLConnection are VM-specific. Sun's JDK supports a different set than the browser VMs or third-party JDK VMs. The protocols that seem to be common to all implementations are HTTP and FTP and file. Other protocols that might be supported include HTTPS, mailto, gopher, and TELNET.
In the table below, some of the more common VMs are listed showing the major protocols they support. There are other protocols not shown in this table that may be supported.
|JDK 1.2||Netscape 4.7||IE 5.0|