Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

97
Views
duplicating a successful logged-in cURL REST API call using JavaScript AJAX

I have already verified that using CURL I can make the following call:

curl -b cookies.txt -c cookies.txt https://jiracloud.<my-company.com>/browse/PROJ-1731

with this cookie jar file:

# Netscape HTTP Cookie File
# https://curl.haxx.se/docs/http-cookies.html
# This file was generated by libcurl! Edit at your own risk.

#HttpOnly_jiracloud.<my-company.com>    FALSE   /   TRUE    0   JSESSIONID  XXXXXXX
jiracloud.<my-company.com>  FALSE   /   TRUE    0   atlassian.xsrf.token    <redacted>

I got the <redacted> value shown from simply copying and pasting from the browser console when logged into our Jira site. Again, this works.

My question is whether it will be possible, using Javascript from a separate site, to duplicate the same curl call (i.e. control the cookies and headers, most importantly cookies in this case) with AJAX, and have the same success. Thanks.

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!