Skip to main content
  • Place orders quickly and easily
  • View orders and track your shipping status
  • Enjoy members-only rewards and discounts
  • Create and access a list of your products
  • Manage your Dell EMC sites, products, and product-level contacts using Company Administration.

ECS 3.6.2 Data Access Guide

PDF

Authenticate with cookies

This example shows how to use authentication tokens by saving the cookie from a successful authentication request and passing the cookie into a subsequent request.

The following example uses the ?using-cookies=true parameter to indicate that you want to receive cookies in addition to the normal HTTP header. The Curl command saves the authentication token to a file named cookiefile in the current directory.
curl -L --location-trusted -k https://<ECS_IP>:4443/login?using-cookies=true 
-u "root:Password" 
-c cookiefile 
-v 
		
The following command passes the cookie with the authentication token using the Curl command -b switch, and returns the user's tenant information.
curl -k https://10.247.100.247:4443/object/namespaces -b cookiefile -v 

<?xml version="1.0" encoding="UTF-8" standalone="yes"?> 
<namespaces>
   <namespace>
     <id>ns1</id>
     <link rel="self" href="/object/namespaces/namespace/ns1"/>
     <names>ns1</name>
   </namespace>
</namespaces>

Rate this content

Accurate
Useful
Easy to understand
Was this article helpful?
0/3000 characters
  Please provide ratings (1-5 stars).
  Please provide ratings (1-5 stars).
  Please provide ratings (1-5 stars).
  Please select whether the article was helpful or not.
  Comments cannot contain these special characters: <>()\