public void oneLevelDeepPost(String container1, String url1, String dest) {
        String fileData = "";
        BufferedWriter bufferWritter = null;
        try {
            String container = container1;
            String url = url1;
            String destination = dest;

            Document doc = postUrl(url);
            Elements links = doc.select(container + " a[href]");
            print("\nLinks: (%d)", links.size());

            try {
                for (Element link : links) {
                    boolean connected = false;
                    int attempts = 0;
                    while (!connected) {
                        if (attempts++ == 1) {
                            break;
                        }
                        try {
                            org.jsoup.Connection connection = org.jsoup.Jsoup.connect(link.attr("abs:href")).timeout(10 * 1000);
                            connection.followRedirects(false);
                            org.jsoup.Connection.Response response = connection.execute();
                            if (response.statusCode() == 200) {
                                Document doc1 = connection.get();
                                fileData += doc1.toString().concat("\n");

                            }
                        } catch (Exception ex) {
                            System.out.println("Connection failure #" + attempts + ": " + link);
                            System.out.println(ex.getMessage());
                        }
                    }
                }
                FileWriter fstream = new FileWriter(destination + "out.txt", true);
                bufferWritter = new BufferedWriter(fstream);
                bufferWritter.write(fileData);
            } catch (Exception e) {
                System.err.println("Error: " + e.getMessage());
            }
        } catch (Exception e) {
            System.err.println("Error: " + e.getMessage());
        } finally {
            try {
                bufferWritter.close();
            } catch (IOException e) {
                e.printStackTrace();
            }
            JLabel errorFields = new JLabel("<HTML><FONT COLOR = Blue>Success</FONT></HTML>");
            JOptionPane.showMessageDialog(null, errorFields);
        }
    }