What is the java code to logout from Jazz server via HTTP request.
Hello,
I have log in something like this:
HttpPost securityCheck = new HttpPost(this.authUrl + "/j_security_check");
StringEntity entity = new StringEntity("j_username=" + this.user + "&j_password=" + this.password);
securityCheck.setHeader("Accept", "/");
securityCheck.setHeader("X-Requested-With", "XMLHttpRequest");
securityCheck.setEntity(entity);
securityCheck.addHeader("Content-Type", "application/x-www-form-urlencoded; charset=utf-8");
securityCheck.addHeader("OSLC-Core-Version", "2.0");
resp = httpClient.execute(securityCheck);
Now I have to logout.
Regards,
Swapnil
Now I have to logout.
Regards,
Swapnil