Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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

0 votes


Be the first one to answer this question!

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 15
× 11
× 5
× 5

Question asked: Jun 01 '18, 1:36 a.m.

Question was seen: 1,056 times

Last updated: Jun 01 '18, 1:36 a.m.

Confirmation Cancel Confirm