Java HttpURLConnection class Program
- by pandu
I am learning java. Here is the sample code of HttpURLConnection class usage in some text book
import java.net.*;
import java.io.*;
import java.util.*;
class HttpURLDemo
{
public static void main(String args[]) throws Exception {
URL hp = new URL("http://www.google.com");
HttpURLConnection hpCon…