Jump to content
We've recently updated our Privacy Statement, available here ×

Get JSESSIONID with jQuery


aleix.vaz

Recommended Posts

Hi there,

I'm trying to make us of Jasperserver REST API and I'm getting stuck while trying to get the JSESSIONID for authorizing the GET calls. Does anyone know how should I do this using jQuery? Or alternatively, how could I do it? I would appreciate some help, as it's quite urgent...

Thanks in advance,

Link to comment
Share on other sites

  • 3 weeks later...
  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

i get it using python:

 

import requests

from requests.auth import HTTPBasicAuth

 

r = requests.get('https://mobiledemo.jaspersoft.com/jasperserver-pro/flow.html?_flowId=homeFlow', auth = HTTPBasicAuth('joeuser', 'joeuser'))

print(r.cookie)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...