Tags » HTTP

Move from HTTP to HTTPS... or Become Irrelevant

At 11:00am on 4/23/2017, Move from HTTP to HTTPS… or Become Irrelevant, presented by Peter La Fond, at the 2017 Wordcamp Conference in Raleigh, NC… 460 more words

Professional Development

Read Remote File Contents

@Test
public void formatOutput() {
    final String routerJS =
            "static/master/router.js";
    readRemoteFileContents(routerJS);
}

private void readRemoteFileContents(final String fileToRead) {
    HttpURLConnection connection = null;
    try {
        connection = (HttpURLConnection)githubURL(fileToRead).openConnection();
    } catch (IOException e) {
        e.printStackTrace();
    }

    Scanner scanner = null;
    try (BufferedReader reader = new BufferedReader(new InputStreamReader(connection.getInputStream()))) {
        scanner = new Scanner(
                new StringReader(
                        reader.lines().collect(
                                Collectors.joining(System.getProperty("line.separator")))))
        .useDelimiter(System.getProperty("line.separator"));

        while(scanner.hasNext()) {
            System.out.printf("%s%n", scanner.next());
        }
    } catch (IOException e) {

    } finally {
        if (scanner != null) scanner.close();
        if (connection != null) connection.disconnect();
    }

}

private URL githubURL(final String fileToRead) throws MalformedURLException {
    final String baseGitHubFiles = "https://raw.githubusercontent.com/enterprisesaas/";
    final StringBuilder url = new StringBuilder(baseGitHubFiles).append(fileToRead);
    return new URL(url.toString());
}
Code

What is API Testing?

API testing is a type of software testing which involves testing application programming interface or software resource as part of product integration testing to determine if they meet expectations or functionality, reliability, performance, and security. 238 more words

Python-Language

Master the Law of Abundance|Make all the money you want


http://strategicvisionary.info The Universal Law of Abundance is also known as the Universal Law of Opulence. It simply states that we can create an optimum …
http://bit.ly/2oSBiFG

Adult Hosting Providers

Adult hosting (http://www.ananova.com/best-adult-web-hosting/) provides a platform for those customers or organizations dealing with adult industry…
http://bit.ly/2osZ0W7

Hosting