Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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

saurabh sharma
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 31, 2018

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
Atlassian Team members are employees working across the company in a wide variety of roles.
January 2, 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
AUG Leaders

Atlassian Community Events