@@ -0,0 +1,2123 @@
+package web;%0A%0Aimport javax.imageio.ImageIO;%0Aimport javax.swing.*;%0Aimport java.awt.*;%0Aimport java.awt.image.BufferedImage;%0Aimport java.io.*;%0Aimport java.net.HttpURLConnection;%0Aimport java.net.MalformedURLException;%0Aimport java.net.URL;%0A%0Apublic class HttpGet %7B%0A%0A    public static void main(String%5B%5D args) %7B%0A        //Image img;%0A        BufferedImage img= null;%0A        try %7B%0A            URL url = new URL(%22http://content.onliner.by/widget/catalog/popularsections/1x2/62a49e2565ce4acc275e480293ae598c.png%22);%0A            img = ImageIO.read(url);%0A        %7D catch (IOException e) %7B%0A        %7D%0A%0A        JFrame frame = new JFrame(%22FrameDemo%22);%0A        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);%0A        frame.getContentPane().add(new Label(), BorderLayout.CENTER);%0A        JLabel picLabel = new JLabel(new ImageIcon( img ));%0A        frame.add(picLabel);%0A        frame.pack();%0A        frame.setVisible(true);%0A    %7D%0A%0A    public static String getHTML(String urlString) %7B%0A        URL url;%0A        HttpURLConnection connection;%0A        BufferedReader reader;%0A        String result=%22%22;%0A        String line=%22%22;%0A        try %7B%0A            url = new URL(urlString);%0A            connection = (HttpURLConnection)url.openConnection();%0A            connection.setRequestMethod(%22GET%22);%0A            reader = new BufferedReader(new InputStreamReader(connection.getInputStream()));%0A            while ((line=reader.readLine())!=null) %7B%0A%0A                result +=line+%22%5Cn%22;%0A            %7D%0A            reader.close();%0A%0A        %7D catch (MalformedURLException e) %7B%0A            e.printStackTrace();%0A        %7D catch (IOException e) %7B%0A            e.printStackTrace();%0A        %7D%0A%0A        return result;%0A    %7D%0A%0A    public static void saveImage(String imageUrl, String destinationFile) throws IOException %7B%0A        URL url = new URL(imageUrl);%0A        InputStream is = url.openStream();%0A        OutputStream os = new FileOutputStream(destinationFile);%0A%0A        byte%5B%5D b = new byte%5B2048%5D;%0A        int length;%0A%0A        while ((length = is.read(b)) != -1) %7B%0A            os.write(b, 0, length);%0A        %7D%0A%0A        is.close();%0A        os.close();%0A    %7D%0A%7D%0A%0A%0A

Add http example