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

How to get Cookie to send get request in postman or client side? Edited

I am trying to send get request from postman to get pullrequest details from bitbucket.To that service i am sending cookies in header.

GET URL:-
https://jdhd.dhdh.com/rest/api/1.0/projects/LP/repos/Jenkins/pull-requests

Header:-

Cokkies:'BITBUCKETSESSIONID=abc; _atl_bitbucket_remember_me=abc; JSESSIONID=acb'

 

X-AUSERNAME:'abc'

X-AUSERID:'26562' 

How to get value value for BITBUCKETSESSIONID,_atl_bitbucket_remember_me,JSESSIONID.

 

If i am not passing cookies in header i am getting below error.

"exceptionName": "com.atlassian.bitbucket.AuthorisationException"

 

 

 

1 answer

0 votes
Roger Barnes Atlassian Team Jan 02, 2020

To use cookies you'd need a good way to extract such values from a logged in browser session. Chrome's developer tools has a way to do this from the network tab (right click on a request to copy a representative curl command, including auth).

However, this is not ideal, as cookie based auth isn't well suited for scripted automation. Instead, consider creating and using a personal access token.

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bitbucket

Powering DevOps with Bitbucket Server & Data Center

Hi everyone, The Cloud team recently announced 12 new DevOps features that help developers ship better code, faster   ! While we’re all excited about the new improvements to Bitbucket ...

1,926 views 0 7
Read article

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