Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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

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

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
TAGS

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you