Jira rest api for login url hit from Postman is displaying cookies properly but not from java client

krishna August 1, 2019

If you hit Jira rest api for login  from Postman tool is displaying cookies with expiry date properly but  if you hit from java jersey rest client, its not showing expiry dates for the respective cookies.

JIRA crowd sso setup version : v7.12.1

Jersey api 1.x 

The below are the Postman response cookies: and Jersey java client response cookies.

Can anyone tell me how to get the cookies values same as postman is showing with expiry dates using java rest client ? why the response is different in two places ? what java api i need to use to get full details of cookies from java program ?

Thanks in advance.

postman_jira_masked.pngjersey_client_response.png

1 answer

0 votes
Gonchik Tsymzhitov
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 21, 2021

Hi! 

You can reuse lower level httpclient as it's parent of rest client

https://www.baeldung.com/java-apache-httpclient-cookies

Suggest an answer

Log in or Sign up to answer