Skip to end of metadata
Go to start of metadata

The Login Resource is used to establish a secure session with the SBC. The user provided in the URI parameters of this resource must be created through the WebUI prior to using the API and must be of the REST access level.In this section, the usage of a POST request using cURL to establish a secure session with the SBC system is demonstrated.

./curl.exe --cacert --data "Username=admin&Password=admin" -i -v
HTTP/1.1 200 OK
Set-Cookie: PHPSESSID=ima0r3nkaeg8mo0suln67vg4m7; path=/; secure
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Content-type: text/html; charset=UTF-8
Transfer-Encoding: chunked
Date: Tue, 17 May 2011 18:57:03 GMT

<?xml version="1.0">

Session Token

Use the PHPSESSID=ima0r3nkaeg8mo0suln67vg4m7 cookie from Set-Cookie from above login resource response for subsequent CURL Rest calls.