Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

88
Vistas
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
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda