Sparkflows Logo
latest
  • Architecture & Deployment
  • Installation
  • Configuration
  • Authentication
  • Security
  • Operating Guide
  • Quickstart Guide
  • User Guide
  • Analytical Apps User Guide
  • Machine Learning User Guide
  • Time Series Analysis
  • Tutorials
  • Troubleshooting
  • FAQ
  • Administration Guide
  • Databricks Guide
  • AWS Guide
  • AZURE Guide
  • Load Balancer
  • Superset
  • Python Integration
  • Performance Tuning
  • Developer Guide
  • Processors
  • Release Notes
  • REST API Authentication
    • Acquire Session Cookie Using CURL
    • Acquire Session Cookie in Python
    • Acquire Token Using CURL
    • Acquire Token using Postman and Grant Type - Password
    • Acquire token using Postman - Authorization code
    • Acquire Token in Python - Grant Type Password
  • REST API Examples using Python
  • REST API Examples using Java
  • REST API Examples using curl
  • Third Party Acknowledgements
Sparkflows
  • Docs »
  • REST API Authentication »
  • Acquire Session Cookie Using CURL
  • Edit on GitHub

Acquire Session Cookie Using CURLΒΆ

When invoking the REST APIs of Fire Insights with curl, the first step is to log in and save the incoming cookie into a text file. This file would then be used in making subsequent REST calls via curl.

Save the incoming cookies using the -c option of curl into a file.

In the below example, the Fire Insights web server is running on the local machine at : localhost:8080

You can replace it with your machine name and port.

CURL:

curl -i -X POST -d username=admin -d password=admin -c /tmp/cookies.txt localhost:8080/login

In the above:

  • username = admin
  • password = admin
  • Incoming cookie gets saved into : /tmp/cookies.txt
  • REST API endpoint : localhost:8080/login
Next Previous

© Copyright 2020, Sparkflows Inc. Revision b27cc99c.

Built with Sphinx using a theme provided by Read the Docs.