Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

86
Visualizações
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 à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda