Java - URL Connection Test

 

HttpURLConnection conn=(HttpURLConnection)new URL("http://novice-2-professional.blogspot.com/2018/02/testing-process-quick-refresh.html").openConnection()

             conn.setRequestMethod("HEAD");

             conn.connect();

             int responseCode = conn.getResponseCode();


Comments

Popular posts from this blog

QA's approach 2 Java - Understanding Static context

Selenium 4 absolute beginners - How to create Batch execution file

Technologies - Log4J - Create Log4j Configuration File - Where ? How ? What ?