Stopping Selenium Server Using HTTP Client - Codoid
Select Page
Codoid Blog

Stopping Selenium Server Using HTTP Client

Irrespective of the business that your client is in, marketing is an integral part of their operations. In fact, in this day and age of social.

In this blog article, we show you how to stop Selenium Server using Apache HTTP Client GET method. The Apache HttpClient library simplifies handling HTTP requests. To use this library download the binaries with dependencies from http://hc.apache.org/.

//URL to stop Selenium Server
String strURL="http://localhost:4444/selenium-server/driver/?cmd=shutDownSeleniumServer";

//HTTP Default client Object
HttpClient client = new DefaultHttpClient();

//HTTP Get Object
HttpGet request = new HttpGet(strURL);

//Executing the request
HttpResponse response = client.execute(request);
  

Read more about Apache HTTP Client

Written By

Submit a Comment

Your email address will not be published. Required fields are marked *


In this blog article, we show you how to stop Selenium Server using Apache HTTP Client GET method. The Apache HttpClient library simplifies handling HTTP requests. To use this library download the binaries with dependencies from http://hc.apache.org/.

//URL to stop Selenium Server
String strURL="http://localhost:4444/selenium-server/driver/?cmd=shutDownSeleniumServer";

//HTTP Default client Object
HttpClient client = new DefaultHttpClient();

//HTTP Get Object
HttpGet request = new HttpGet(strURL);

//Executing the request
HttpResponse response = client.execute(request);
  

Read more about Apache HTTP Client