I am pretty sure that I am successfully signing in. Everywhere I look tells me to parse through the response and look for a header with "Set-Cookie" in it to get the cookie code. However, the response I am getting does not contain such a header. Here is a copy of the response I am getting. I have even tried logging into my company's airwave server and viewed the source code and it is exactly the same as the resonse my app is is getting. Anyhow, here is the response:
<!doctype html>
<html>
<!--
# Copyright (c) 2001-2012, Aruba Networks, Inc.
# This material contains trade secrets and confidential information of Aruba
# Networks, Inc.
# Any use, reproduction, disclosure or dissemination is strictly prohibited
# without the explicit written permission of Aruba Networks, Inc.
# All rights reserved.
-->
<head>
<meta charset="utf-8"/>
<!-- Disallow compatibility mode changing in IE (from user selection or autodetect) -->
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
<script>
if (!(window.history && window.history.pushState)) {
if (!window.location.hash) {
var start_at = document.location.pathname + document.location.search + document.location.hash;
window.location = '/#' + start_at;
}
}
</script>
<link rel="shortcut icon" href="/noauth/theme/airwave/favicon.ico" type="image/x-icon" />
<link rel="stylesheet"
href="/helpdesk/style/awms.1346084953.css"/>
<link rel="stylesheet" href="/mercury.1346084948.css" />
<script src="/mercury.1346084949.js"></script>
<script src="/helpdesk/script/third_party/highcharts/highcharts.1346084953.js"></script>
<script src="/helpdesk/script/third_party/datatables/jquery.dataTables.min.1346084953.js"></script>
<script>
var userPrefs;
var mocha_lang = null;
(function () {
function getLanguageFromUrl() {
var mocha_params = window.location.search.substr(1);
mocha_params = mocha_params.split("&");
for (var i = 0; i < mocha_params.length; i++) {
var tmp = mocha_params[i].split("=");
if (tmp[0].toLowerCase() == 'locale') return unescape(tmp[1]).substr(0, 2);
}
};
function getUserPrefs() {
var userPrefs;
$.ajax({
async: false,
url: '/api/user_prefs.json',
dataType: 'json',
success: function(data, textStatus, jqXHR) {
userPrefs = data;
}
} );
return userPrefs;
};
function getLanguageFromUserPrefs(userPrefs) {
return userPrefs['language'];
};
window['supported_languages'] = {
"ptBR" : 0,
"zht" : 1,
"tr" : 1,
"it" : 1,
"zh" : 1,
"es" : 1,
"nl" : 0,
"ko" : 1,
"en" : 1,
"fr" : 1,
"de" : 1,
"ja" : 1
}
;
function getLanguageFromBrowser() {
var browserLang = (navigator.language) ? navigator.language : navigator.userLanguage;
if (browserLang && browserLang.length >= 2) {
var short_lang = browserLang.substring(0, 2);
if (window['supported_languages'][short_lang]) return short_lang;
}
};
jQuery.ajaxSettings.traditional = true;
// Always try to fetch user prefs because the Application also uses the result to
// infer logged-in state.
userPrefs = getUserPrefs();
mocha_lang = getLanguageFromUrl();
if (!mocha_lang && userPrefs) {
mocha_lang = getLanguageFromUserPrefs(userPrefs);
}
if (!mocha_lang) mocha_lang = 'en';
if (!mocha_lang) mocha_lang = getLanguageFromBrowser();
if (!mocha_lang) mocha_lang = 'en';
document.write('<script src="/helpdesk/script/module_mocha.' + mocha_lang + '.1346085244.js"><\/script>');
})();
</script>
</head>
<body>
<div id="app-container" class="container">
<!-- Pages render here -->
<div id="app-page-container" class="page"></div>
</div>
<script>
// start the application
var mocha = awms.Application.getInstance();
if (!window.location.hash) {
mocha.setFancyHistory(true);
}
mocha.setBrandProperties(
'airwave',
'Aruba Networks',
'AirWave Management Platform',
'AMP'
);
mocha.start(userPrefs);
</script>
</body>
</html>